The shogunate was the hereditary military dictatorship of Japan (1192–1867). Legally, the shogun answered to the emperor, but, as Japan evolved into a feudal society, control of the military became tantamount to control of the country. The emperor remained in his palace in Kyōto chiefly as a symbol of power behind the shogun.