The success rate of gene therapy depends on the efficient transfection of genetic material into cells. The golden mean between harmlessness and high effectiveness can be provided by synthetic lipid-like molecules that are similar to the components of biological membranes. Cationic gemini surfactants are one such moiety and because of their favourable physicochemical properties (double positive electric charge, reduced toxicity, low values of critical micelle concentration), they show great potential as delivery system components for genetic material in gene therapy. The aim of this study was to investigate the process of the complexation of cationic gemini surfactants with nucleic acids: double-stranded DNA of different sizes (21 bp, ~185 bp, ~20 kbp) and siRNA (21 bp). The tested series of dicationic surfactants consists of bis-imidazolium quaternary salts with varying lengths of hydrophobic side chains (m = 5, 6, 7, 8, 9, 11, 12, 14, 16). On the basis of the data obtained by circular dichroism spectroscopy and electrophoresis, we concluded that the studied gemini surfactants with long side chains effectively bind nucleic acids at low concentrations, which leads to the formation of stable lipoplexes. Images obtained by atomic force microscopy also confirmed the formation of vesicular structures, i.e., complexes between DNA and surfactants. The cytotoxicity of selected surfactants was also tested on HeLa cells. The surfactant toxicity significantly depends on surfactant geometry (the length of hydrophobic chain).