Amoxicillin is an antibiotic that doctors commonly prescribe to treat a range of bacterial infections. As such, a doctor may consider prescribing it to treat a UTI. They may use it as a second-line treatment option for UTIs.