Azithromycin is considered a broad-spectrum antibiotic, meaning it can be used to treat a wide variety of bacterial infections. For example, azithromycin can be used to treat pneumonia, Lyme disease, ear infections, sinus infections, chlamydia, and gonorrhea. Azithromycin, like all antibiotics, cannot treat viral infections.