Antimicrobial resistance is a serious threat to global public health, but little is known about the effects of microbial control on the microbiota and its associated resistome. Here we compare the microbiota present on surfaces of clinical settings with other built environments. Using state-of-the-art metagenomics approaches and genome and plasmid reconstruction, we show that increased confinement and cleaning is associated with a loss of microbial diversity and a shift from Gram-positive bacteria, such as Actinobacteria and Firmicutes, to Gram-negative such as Proteobacteria. Moreover, the microbiome of highly maintained built environments has a different resistome when compared to other built environments, as well as a higher diversity in resistance genes. Our results highlight that the loss of microbial diversity correlates with an increase in resistance, and the need for implementing strategies to restore bacterial diversity in certain built environments.