Antibiotics are a type of antimicrobial drug used to treat and prevent bacterial infections. They function by either killing bacteria or inhibiting their growth. Antibiotics are crucial in the treatment of various infections, such as pneumonia, tuberculosis, and gonorrhea.