Metagenomic studies have made it possible to deepen the analysis of the abundance of bacterial populations that carry resistance and virulence determinants in the wastewater environment. In this study, a longitudinal collection of samples of community and hospital wastewater from August 2021 to September 2022 was obtained. Shotgun metagenomic sequencing and bioinformatic analysis were performed to characterize the bacterial abundance, antimicrobial resistance genes (ARGs), plasmids, and virulence factor genes (VFGs) contained in the wastewater. The microbial composition of the community and hospital wastewater showed that the most abundant bacterial phyla detected in all samples were: