These were: The Imperial Family Shrine (Imperial Ancestral Temple), where the emperor worshipped the spirits of his ancestors, and the Imperial Shrine of State (Shejitan), a place where national ceremonies dedicated to land and grain were held during the Ming and Qing dynasties and where the emperor could worship the spirits of his ancestors and the spirit of the nation.