The temple was first built by the Wanli emperor's mother during the Ming Dynasty in 1592. in 1679, the temple was heavily damaged in an earthquake, and was never really restored to its former glory, and later became a storage space for coffins. Following the establishment of the People's Republic in 1949, the temple was transformed into housing. In 2001, the temple was put under cultural protection and went through an extensive renovation costing nearly 200 million RMB. In 2005 the temple reopened as the Xuanwu cultural museum.
The temple is organized around one main courtyard which contains three halls. Adjoining the temple is the Xuanwu Municipal Bureau of Tourism.
The temple is located at 9 Changchun Jie in Xuanwu district, Beijing.