After FUJIWARA no Tanetsugu, who was responsible for its construction, was assassinated, and Imperial Prince Sawara, the Emperor Kanmu's younger brother, was arrested, a new capital named Heiankyo was constructed and transferred in 794 and the characters from Yamashiro Province were changed from 山背国 to 山城国.
工事責任者の藤原種継が暗殺され、桓武天皇の弟早良親王が捕まる事態となって、794年（延暦13年）新しい都城を造成し、山背国を山城国と改め、新京を平安京と名づけて遷都した。