Azithromycin is used to treat certain infections caused by bacteria, such as bronchitis; pneumonia; sexually transmitted diseases (STD); and infections of the ears, lungs, skin, and throat. Azithromycin is in a class of medications called macrolide antibi