The hospital indoor environment has a crucial impact on the microbial exposures that humans encounter. Resistance to antibiotics is a mechanism used by bacteria to develop resilience in indoor environments, and the widespread use of antibiotics has led to changes in the ecological function of resistance genes and their acquisition by pathogens. By integrating the 16S rRNA Illumina sequencing and high-throughput-quantitative PCR approaches with water and air dust samples across seven departments in Peking University Shenzhen Hospital, China, this study yields intriguing findings regarding the department-specific variations, correlations and source tracing of bacteria, antibiotic resistance genes (ARGs) and mobile genetic elements (MGEs) within the hospital indoor environment. A notable observation was the pivotal role played by seasonal variations in shaping the bacterial composition across the entire hospital indoor environment. Another department-specific finding was the correlation between ARGs and MGEs abundance, which was evident in the overall hospital indoor environment, but not found in the blood test room, ophthalmology, and gynecology departments. Notably, as an important source of bacteria and ARGs/MGEs for the blood test room, the gynecology department also presented a close link between bacterial communities and the presence of ARGs/MGEs. Additionally, the results reiterate the importance of surveillance and monitoring of antibiotic resistance, specifically in Legionella spp. in man-made water systems, and highlight the significance of understanding genetic elements like Tp614 involved in gene transfer and recombination, and their impact on antimicrobial treatment efficacy. Key points•The department-specific variations, correlations and source tracing of bacteria, ARGs, and MGEs were uncovered in the hospital’s indoor environment.•Although each department exhibited consistent seasonal impacts on bacterial compositions, the co-occurrence between the presence of ARGs and MGEs was exclusively evident in the emergency, surgery, pneumology and otolaryngology departments.•The gynecology department emerged as a crucial source of bacteria, ARGs and MGEs within the hospital. Additionally, it was found to exhibit a significant correlation between bacterial communities and the presence of ARGs and MGEs.