Toji was established just after the imperial capital moved to Kyoto in 794, built with wood from sacred Mt.
Kyoto became the imperial capital in the late 8th century.