Emperor Saga
The temple was originally built in 816, by Kūkai under the orders of Emperor Saga. Kūkai's posthumous name was "Kōbō Daishi" (弘法大師), giving rise to the temple's alternate name.