Shogun (将軍, shōgun, Japanese: [ɕoːɡɯɴ] (listen); English: /ˈʃɡʌn/ SHOH-gun[1]) was the title of the military dictators of Japan during most of the period spanning from 1185 to 1868. Nominally appointed by the Emperor, shoguns were usually the de facto rulers of the country,[2] though during part of the Kamakura period, shoguns were themselves figureheads. The office of shogun was in practice hereditary, though over the course of the history of Japan several different clans held the position. Shogun is the short form of Sei-i Taishōgun (征夷大将軍, "Commander-in-Chief of the Expeditionary Force Against the Barbarians"),[3] a high military title from the early Heian period in the 8th and 9th centuries; when Minamoto no Yoritomo gained political ascendency over Japan in 1185, the title was revived to regularize his position, making him the first shogun in the usually understood sense.

The shogun's officials were collectively referred to as the bakufu (幕府, "tent government"); they were the ones who carried out the actual duties of administration, while the Imperial court retained only nominal authority.[4] The tent symbolized the shogun's role as the military's field commander but also denoted that such an office was meant to be temporary. Nevertheless, the institution, known in English as the shogunate (English: /ˈʃɡənt/) persisted for nearly 700 years, ending when Tokugawa Yoshinobu relinquished the office to Emperor Meiji in 1867 as part of the Meiji Restoration.[5]