A total of 835 rodents captured in Beijing, China, were tested for hantavirus infection. Fifty-five (6.6%) were positive for viral RNA when lung tissue samples were examined by reverse transcriptase-polymerase chain reaction. Of 666 sera collected from the above rodents, 50 (7.5%) were positive for IgG antibody by ELISA. Among the 50 seropositive rodents, 37 were positive for viral RNA. In addition, five rodents were positive for viral RNA but negative for IgG antibody. The infection rates among study sites (chi(2) = 28.93, df = 8, P = 0.001) and habitats (chi(2) = 22.88,df = 7, P = 0.02) were significantly different. The sequences of partial M-segment of hantaviruses detected in 11 representative rodents had 0.1-8.2% divergence. Phylogenetic analysis showed that our hantavirus sequences fell into three different lineages regardless of geographical origin or rodent species. A strain detected from a trading center of agricultural products, which might be imported from other provinces, was genetically different from other strains of Beijing.