With the establishment of Heian-kyo (the ancient capital of Japan in current Kyoto), Kamiyain was moved to a riverside of Tenjin-gawa River in Sagano, and its facilities were improved.
平安京遷都に伴い、嵯峨野の天神川沿いに移されて設備の充実が図られた。