The Capital City God Temple Main Hall is a key cultural heritage site under the protection of Beijing Municipality. In mythology, the Capital City God Temple is dedicated to the city god of the capital. It was originally built in the fourth year of the Yuan Dynasty (1267) and was named the Youshengwang Lingying Temple. Later, it was renovated during the Yongle period of the Ming Dynasty and renamed the Daweiling Temple. Since then, the temple has undergone multiple renovations and reconstructions.
The temple faces south and has three gates on the central axis (the temple gate, Shunde Gate, and Chanwei Gate), along with other structures such as the bell and drum towers, Daweiling Temple, two side halls, the place for treating animals, wells, pavilions, and a censer. The existing five rooms of the side hall have a construction area of approximately 420 square meters. Inside the temple, there are steles from the Ming Emperor Yingzong and the Qing Emperors Shizong and Gaozong. There are also couplets inscribed by Emperor Kangxi and Emperor Yongzheng.
The Capital City God Temple Market was once one of the famous temple fairs in Beijing. Opening hours are from 9:00 to 17:00 all year round.