山城國
Kōfuku-ji has its origin as a temple that was established in 669 by Kagami-no-Ōkimi (), the wife of Fujiwara no Kamatari, wishing for her husband’s recovery from illness. Its original site was in Yamashina, Yamashiro Province (present-day Kyoto). In 672, the temple was moved to Fujiwara-kyō, the first planned Japanese capital to copy the orthogonal grid pattern of Chang'an. In 710, the temple was dismantled for the second time and moved to its present location, on the east side of the newly constructed capital, Heijō-kyō, today's Nara.