Macrolides are a class of antibiotics that are commonly used in the treatment of various bacterial infections. They work by inhibiting protein synthesis in bacteria, thereby stopping their growth and multiplication. Examples of macrolides include erythromycin, azithromycin, and clarithromycin.