Abstract: Molecularly imprinted poly-2-(1H-imidazol-2-yl)-4-phenol (PIMH) microspheres were prepared by suspension polymerization of 2-(1H-imidazol-2-yl)-4-vinylphenol in the presence of nitrogen containing compounds (N-compounds). Model nitrogen containing compounds such as quinoline, pyrimidine (basic nitrogen compounds) and carbazole (non-basic nitrogen compounds) were employed as templates. Isothermal titration calorimetric (ITC) studies revealed that quinoline/PIMH and pyrimidine/PIMH interactions were exothermic (-18.0 ± 4.8 and -28.1 ± 3.6 kJ/mol, respectively), while carbazole/PIMH was endothermic (3.3 ± 0.7 kJ/mol). Imprinted microspheres show selectivity for the various target model nitrogen-containing compounds with adsorption capacities of 6.8 ± 0.2 mg/g, 6.3 ± 0.3 mg/g and 5.8 ± 0.3 mg/g for quinoline, pyrimidine and carbazole, respectively. The application of imprinted microspheres showed potential for the removal of nitrogen containing heterocyclic compounds in fuel