Emperor Heizei
The Tenson Shrine was established in 782 and purified by Emperor Heizei in 806.