Azithromycin should not be used in patients with hepatic impairment because biliary excretion is the major route of elimination for azithromycin. It is also contraindicated in patients with known hypersensitivity to azithromycin, erythromycin, or any macrolide antibiotics.