The Shōgun (将軍, SHOH-gun) was the military dictator of Japan during most of the period spanning from 1185 to 1868. Nominally appointed by the Emperor, shōguns were usually the de facto rulers of the country, though during part of the Kamakura period shōguns were themselves figureheads. The office of shōgun was in practice hereditary, though over the course of the history of Japan several different clans held the position. Shōgun is the short form of Sei-i Taishōgun (征夷大将軍, "Commander-in-Chief of the Expeditionary Force Against the Barbarians"), a high military title from the Heian period and can be roughly equated with the Western rank of Generalissimus. When Minamoto no Yoritomo gained political ascendency over Japan in 1185, the title was revived to regularize his position, making him the first shōgun in the usually understood sense.