Multidrug-resistant ESBL-producingEscherichia coliare a leading cause of infections in hospital and community settings. Based on samples from two hospitals in Uganda and households of inpatients we tested the hypothesis that ESBLE. coliand/or their resistance determinants could spread within the healthcare and community settings through discharged patients that were still colonized. We used bacterial culture, susceptibility testing whole genome sequencing and detailed bioinformatics analysis to test the above hypothesis. Genome analysis revealed presence of predominantlyblaCTX-M-15andblaOXA-1genes with a total resistome with genes belonging to 14 different classes of antimicrobials. Short-term cases of strain sharing were reported within each setting and strains from the two settings were found to cluster together based on their overall resistome. Long-term horizontal transfer of ESBL genes by variousIncF andIncY types of plasmids shared between healthcare and community settings was demonstrated. Based on hybrid assembly, plasmid reconstruction and phylogenetic analyses, our study suggests that while the dissemination of AMR between healthcare and community settings in the short-term is possible at whole strain level, the long-term transmission between healthcare and communities is sustained by the transfer of plasmids circulating across niches and disseminating related resistomes.