Once serving as an imperial palace, the layout of the
temple is quite different from other temples. The main
gate faces south, and on its 480-meter-long north-south
axis are five main halls and annexs connected by courtyards.
They include a glaze-tiled arch, Gate of Peace Declaration
(Zhaotaimen), Devaraja Hall (Tianwangdian), which was
formerly the entrance to Yongzheng's imperial palace,
Hall of Harmony and Peace (Yonghegong), Hall of Everlasting
Protection (Yongyoudian), Hall of the Wheel of the Law
(Falundian) and Pavilion of Eternal Happiness (Wanfuge).