Erythromycin is a macrolide antibiotic that has an antimicrobial spectrum and is often used for people who have an allergy to penicillins. For respiratory tract infections, it has better coverage of atypical organisms, including Mycoplasma and legionellosis.