When prescribed for a UTI, amoxicillin works by eliminating the bacteria causing the infection. Escherichia coli (E. coli) is the most common culprit and accounts for about 80-90% of all UTIs.