Zithromax is usually prescribed to treat bacterial infections, such as pneumonia, bronchitis, and ear infections. It can also be used to prevent infections in people who are at risk of getting them, such as those with HIV or cancer patients receiving chemotherapy. Zithromax is a macrolide antibiotic that works by stopping the growth of bacteria.