桓武天皇
The Nara period saw the appointment of the first "shōgun", Ōtomo no Otomaro by Emperor Kanmu in 794 CE. The shōgun was the military dictator of Japan with near absolute power over territories via the military. Otomaro was declared "Sei-i Taishōgun" which means "Barbarian-subduing Great General". Emperor Kanmu granted the second title of shōgun to Sakanoue no Tamuramaro for subduing the Emishi in northern Honshu.