The "Five Altars" refers to the Temple of Heaven, the Temple of Earth, the Temple of the Sun, the Temple of the Moon, and the Xiannong Altar. All these temples were built in the Ming Dynasty and still used in the Qing Dynasty, for the emperors to worship the gods of heaven, earth, sun, moon, mountains and rivers, and Taisui.