Urinary tract infections (UTIs) caused by extended-spectrum beta-lactamase (ESBL)-producing organisms are prevalent in both outpatient and inpatient settings, representing the most often encountered forms of infection. This research aimed to estimate the prevalence of ESBL-UTIs along with other uropathogens in the adult population and to assess the antibiotic activity against Escherichia coli extended-spectrum beta-lactamase (E. coli ESBL) isolates from patient samples in Al-Baha. A retrospective cross-sectional study included patients who presented to King Fahad Hospital in Al-Baha with clinical suspicion of UTI between 1 January 2019 and 30 September 2022. A total of 4406 urine samples with significant microbial growth were included in the scope of this investigation. A collective count of 1644 incidents of Escherichia coli (E. coli) was observed, wherein E. coli constituted 85% of the cases, while the remaining 15% comprised E. coli ESBL producers. The prevalence of E. coli ESBL was observed to be 64.7% in females and 35.3% in males, with a majority (67%) of the affected individuals being over the age of 50. The incidence of E. coli infections in the outpatient setting was found to be greater than that observed in the inpatient setting. E. coli ESBL were sensitive to colistin, tigecycline, amikacin, meropenem, imipenem, and nitrofurantoin by 100% and 93.3–100%, 95–99.6%, 95–99.06%, and 81–91%, respectively. On the other hand, the most resistant agents for E. coli ESBL were the group of cephalosporins, aztreonam, and ampicillin with 100% resistance, ciprofloxacin with 56–74% resistance, and cotrimoxazole with a 45–53% resistance level. ESBL-resistant E. coli strains are moderately prevalent in community- and hospital-acquired UTIs, especially in females and elderly patients (>50 years).