Zithromax contains the active ingredient azithromycin, which is a type of medicine called a macrolide antibiotic. Azithromycin works by preventing bacteria from producing proteins that are essential to them. Without these proteins the bacteria cannot grow and replicate.