Objective: To investigate the species, density, and Hantavirus infection status of rodents in the suburban counties of Xi'an, China, so as to provide a scientific basis for the control and prevention of rodents and hemorrhagic fever with renal syndrome. Methods: From January to December 2023, rodents were monitored by night-snap trapping with peanut baits at randomly selected sites in the suburban counties of Xi'an, which were divided into four survey areas in the east, south, west, and north. The monitored habitats included urban residential areas, rural residential areas, key places, farmland, and grassland/woodland. Rodents captured were taxonomically classified based on external morphological characteristics and ecological distribution. Lung tissues collected post-dissection were subjected to Hantavirus nucleic acid detection through reverse transcription real-time quantitative PCR (RT-qPCR). Excel 2021 software was used to establish the database, and R 4.3.2 were used for statistical analyses. Rodent species composition was compared using the Fisher's exact test. Results: A total of 15 146 effective snap traps were deployed, and 358 rodents were captured, with a rodents density of 2.36%. Rodent densities were highest in the southern region at 3.39% and in the grassland/woodland at 4.55%. The dominant species was Mus musculus in the northern region and Apodemus agrarius in the other regions, showing a significant difference in rodents species composition between different regions (P < 0.001). Apodemus agrarius was dominant in grassland/woodland, farmland, and key places, Rattus norvegicus was dominant in urban residential areas, and M. musculus was abundent among three species of rodents found in rural residential areas. The difference in rodent species composition between different habitats was statistically significant (P < 0.001). Hantavirus nucleic acid testing was performed on lung tissue samples for all the captured rodents; and 20 positive rodents were detected, all being A. agrarius, and all infected with Hantaan virus. Among the four regions, rodents in the southern region had the highest Hantavirus infection rate (10.38%), and among the different habitats, rodents in farmland had the highest infection rate (8.70%). Conclusions: Rodent density and Hantavirus infection rate are both high in the suburban counties of Xi'an, especially in the southern region, where the risk of rodent infestations should be paid attention to. Based on the investigation results, the government should carry out rodent control and the prevention of rodent-borne diseases, and establish a long-term management mechanism, so as to effectively control rodent density and reduce rodent-borne diseases.