Erythromycin is an antibiotic that is used to treat infections such as infections of the chest, mouth, skin, stomach and genitals. It works by killing or stopping the growth of bacteria (bugs). It is often used for people who are allergic to penicillins.