Sulfa drugs, or sulfonamides, were the first class of antimicrobial drugs used to treat bacterial infections. They work by inhibiting the synthesis of folic acid, which is essential for bacterial growth.