Antibiotics are a class of drugs that are used to treat infections caused by bacteria. They function by either killing the bacteria or inhibiting their growth. Antibiotics have revolutionized medicine and have been crucial in the treatment of various bacterial infections.