This disclosure relates to novel α2 adrenergicreceptor (α2AR) agonists and their uses. In particular, this disclosure relates to imidazole-containing compounds of formula (IA), formula (IB), formula (IC), formula (ID), or formula (II). These compounds may be useful as peripherally selective α2AR agonists for the treatment or prevention of diseases.