X-ray structural investigations of 2-phenylimidazo[l,2-a]pyridine and two of its salts: 1-methyl-2-phenyl-imidazo[l,2-a]pyridinium iodide and l-methyl-2-phenyl-6-nitro-imidazo[l,2-a]pyridinium iodide (R = 0.040, 0.032, 0.034 respectively), together with semiempirical calculations of charge distribution, have been carried out. The insertion of nitro-group does not cause any fundamental changes in geometry, but induces changes in the electron density distribution in the bicyclic unit. As a result rather short cation-anion contacts (I...C = 3.52 Ä) are observed in structure III.