Shogun 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, 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 , 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.