Erythromycin is a macrolide antibiotic used to treat a variety of bacterial infections, particularly those affecting the skin and integumentary system. It works by inhibiting bacterial protein synthesis, preventing the growth and spread of certain types of bacteria.