Trimethoprim is an antibiotic used to treat bacterial infections, primarily urinary tract infections (UTIs). It works by inhibiting bacterial growth and is typically taken orally in tablet or liquid form. Always follow prescribed dosages and complete the course to prevent resistance.