Macrolides are a class of antibiotics that are especially effective against Gram-positive bacteria and some Gram-negative bacteria. They work by inhibiting bacterial protein synthesis. Common examples include erythromycin, azithromycin, and clarithromycin.