The global prevalence of infections caused by ESBL-producing Enterobacterales (ESBL-E) is increasing and for Escherichia coli observations indicate that this is partly driven by community-onset cases. The ESBL-E population structure in the community is scarcely described and data on risk factors for carriage are conflicting. Here, we report the prevalence and population structure of fecal ESBL-producing E. coli and Klebsiella pneumoniae (ESBL-Ec/Kp) in a general adult population, examine risk factors, and compare carriage isolates with contemporary clinical isolates. Fecal samples obtained from 4999 participants (54% women) ≥40 years in the seventh survey of the population-based Tromsø Study, Norway (2015-2016) were screened for ESBL-Ec/Kp. In addition, we included 118 ESBL-Ec clinical isolates from the Norwegian surveillance program in 2014. All ESBL-producing isolates were whole-genome sequenced. Risk factors associated with carriage were analyzed using multivariable logistic regression. ESBL-Ec gastrointestinal carriage prevalence was 3.3% (95%CI 2.8-3.9%, no sex difference) and 0.08% (0.02-0.20%) for ESBL-Kp. For ESBL-Ec, travel to Asia was the only independent risk factor (AOR 3.47, 95%CI 2.18-5.51). E. coli ST131 was most prevalent in both collections. However, the ST131 proportion was significantly lower in carriage (24%) vs. clinical isolates (58%, p<0.001). Carriage isolates were genetically more diverse with a higher proportion of phylogroup A (26% vs. 5%, p<0.001), indicating that ESBL gene acquisition occurs in a variety of E. coli lineages colonizing the gut. STs commonly related to extra-intestinal infections were more frequent in the clinical isolates also carrying a higher prevalence of antimicrobial resistance, which could indicate clone associated pathogenicity.