Patients with urinary tract infection (UTI) in German outpatient care are usually treated by general practitioners (GPs), as well as by other specialties. To prevent antibiotic resistances and side effects, German guidelines recommend fosfomycin, nitrofurantoin, pivmecillinam and nitroxoline as first-line treatments, and advice against broad-spectrum antibiotics such as fluoroquinolones and cephalosporins. However, data from the European Centre for Disease Prevention and Control indicates a significant proportion of second-line antibiotics in German outpatient care. Our aim was to analyze whether antibiotic prescription has changed over time in accordance with guidelines. In addition, we aimed to investigate whether specialties prescribe different antibiotics for UTIs and whether prescription varies according to patient age and sex. For patients receiving more than one antibiotic, we wanted to determine whether subsequent prescriptions show a change in substances and specialties involved. This retrospective study involved routine data (2013 to 2019) provided by the Bavarian Association of Statutory Health Insurance Physicians. Data on diagnoses and prescriptions were transmitted from outpatient care physicians on a quarterly basis. UTI patients ≥12 years were included. We analyzed 1.7 million UTI prescription cases. In females, shares of fluoroquinolones decreased sharply over time, while shares of first-line substances fosfomycin and pivmecillinam increased. Gynecologists showed the highest shares of first-line substances compared to GPs and urologists. Fluoroquinolone shares decreased in all three specialty groups. In females, older patients showed lower shares of first-line substances than younger patients. If a second or third antibiotic was prescribed, fosfomycin shares decreased, while shares of nitrofurantoin, nitroxoline and cephalosporins increased. Our findings show a trend towards a more guideline-adherent prescribing in the treatment of UTI, with a significant increase of shares of fosfomycin and pivmecillinam, especially in women, and a sharp decrease of shares of fluoroquinolones.