The invention relates to low molecular weight polyethylenimines, to vectors for inserting nucleic acids into cells which contain low molecular weight polyethylenimines, and to the preparation and use of the low molecular weight polyethylenimine and the vector.