Antibiotics are medications used to treat infections caused by bacteria, by killing or inhibiting their growth. They are a crucial part of modern medicine, especially in the treatment of sexually transmitted infections (STIs), where they can effectively eliminate harmful bacteria and prevent complications associated with untreated infections.