An analysis of bacterial community structure and antibiotic resistance gene content of interconnected human faecal and environmental samples from two low-income communities in Latin America was carried out using a combination of functional metagenomics, 16S sequencing and shotgun sequencing; resistomes across habitats are generally structured along ecological gradients, but key resistance genes can cross these boundaries, and the authors assessed the usefulness of excreta management protocols in the prevention of resistance gene dissemination.