The red imported fire ants (RIFA, Solenopsis invicta) have become a well-known invasive species that poses significant ecological and economic threats globally. As of recent times, the geographic scope of its invasion in China is rapidly expanding, thereby aggravating the extent and severity of its detrimental effects. The importance of soil microorganisms for maintaining soil health and ecosystem function has been widely acknowledged. However, the negative impact of RIFAs on soil microbial communities and their functions has not yet been fully understood. In this study, we sequenced the V3-V4 variable region of the bacterial 16S rRNA gene in soil samples collected from three types of RIFA nests to investigate the impact of RIFA invasion on soil microbial diversity and composition. The results of alpha diversity analysis showed that the normal soil without nests of RIFAs exhibited the highest level of diversity, followed by the soil samples from RIFA-invaded nests and abandoned nests. Taxonomy and biological function annotation analyses revealed significant differences in microbial community structure and function among the different samples. Our findings demonstrate that RIFA invasion can significantly alter soil microbial community composition, which could ultimately affect ecosystem function. Therefore, effective management strategies are urgently needed to mitigate the negative impact of invasive species on native ecosystems.