When the capital was relocated to the city of Heijo-kyo, Daikandai-ji Temple was moved to the new capital and renamed Taian-ji Temple, while Hoko-ji Temple was also moved and renamed Gango-ji Temple (the former Hoko-ji Temple buildings remained as a branch temple that later became independent as Moto Gango-ji Temple).
その後、平城京遷都に伴い、大官大寺は新京に移されて大安寺と改名し、法興寺も移転されて元興寺と改名された（なお、法興寺の旧施設も別院として残されて後に本元興寺として独立する）。