Antibiotics are prescribed to treat bacterial infections of the reproductive system. Conditions such as pelvic inflammatory disease, bacterial vaginosis, and certain sexually transmitted infections (STIs) like chlamydia and gonorrhea are commonly treated with antibiotics.