Mercury contamination is a serious problem in Chinese cities. In the present study, mercury contamination was evaluated in topsoil and subsoil samples collected in an urban area of Beijing. The level of total mercury in topsoil ranged from 12.1 to 8,487 ng g(-1), and a significant correlation (R = 0.58145, p < 0.0001) with polycyclic aromatic hydrocarbons was observed. Higher levels were generally observed in the suburbs and urban centers, with the highest levels being observed in the urban centers. The fraction of water soluble, ion exchangeable, Fe-Mn in the oxide-bound and organic phase was 0.78%, 0.18%, 0.25% and 3.42%, respectively. For subsoils, the level of total mercury ranged from 7.0 to 924.6 ng g(-1), and the higher levels were primarily located in the suburbs. This study showed that mercury has possibly affected the environmental quality of soil and groundwater in urban areas of Beijing.