The reaction of imidazole with hydroiodic acid leads to three products crystallizing as ionic salts; [C 3 N 2 H 5 + ][I 2 ], [C 3 N 2 H 5 + ] 2 [I 4 22 ] and [C 3 N 2 H 3 I 2 + ][I 2 ]. All the analogs were characterized by single-crystal X-ray diffraction, while the first two were additionally studied by calorimetric, dilatometric, dielectric and proton magnetic resonance methods. At room temperature (RT), [C 3 N 2 H 5 + ][I 2 ] adopts the centrosymmetric, trigonal space group (R3). The crystal structure consists of disordered imidazolium cations and discrete I 2 ions. [C 3 N 2 H 5 + ][I 2 ] undergoes two discontinuous phase transitions (PTs) at 180/185 K and 113/ 123 K (cooling-heating), both of them governed by the imidazolium cation dynamics. [C 3 N 2 H 5 + ] 2 [I 4 22 ] consists of disordered imidazolium cations and quite rare and exotic [I 4 ] 22 tetraiodide counterion. It undergoes continuous PT at 204 K of the ferroelastic type with a symmetry change from orthorhombic Fddd to monoclinic C2/c. The mechanism of PT is complex and consists of 'order-disorder' and 'displacive' contributions that are assigned to the dynamics of cations and to the distortion of the [I 4 22 ] rods, respectively. [C 3 N 2 H 3 I 2 + ][I 2 ] is built up of discrete 4,5-diiodoimidazolium cations and isolated I 2 ions. A characteristic feature of this compound is the presence of a layered structure in which moieties are held together by strong I … I halogen interactions and N-H … I hydrogen bonds.3 Electronic supplementary information (ESI) available: Details of the thermal (TGA), X-ray diffraction and dielectric and 1 H NMR measurements. CCDC 929449-929453. For ESI and crystallographic data in CIF or other electronic format see