A close relationship developed between the Tendai monastery complex on Mount Hiei and the imperial court in its new capital at the foot of the mountain