The Shōgun (将軍, Japanese: (listen); English: /ˈʃoʊɡʌn/ SHOH-gun) was the military dictator of Japan during the period from 1185 to 1868 (with exceptions). In most of this period, the shōguns were the de facto rulers of the country, although nominally they were appointed by the Emperor as a ceremonial formality. The shōguns held almost absolute power over territories through military means. The Shōgun (将軍, Japanese: (listen); English: /ˈʃoʊɡʌn/ SHOH-gun) was the military dictator of Japan during the period from 1185 to 1868 (with exceptions). In most of this period, the shōguns were the de facto rulers of the country, although nominally they were appointed by the Emperor as a ceremonial formality. The shōguns held almost absolute power over territories through military means. Shōgun is the short form of Sei-i Taishōgun (征夷大将軍, 'Commander-in-Chief of the Expeditionary Force Against the Barbarians'), the individual governing the country at various times in the history of Japan, ending when Tokugawa Yoshinobu relinquished the office to Emperor Meiji in 1867. The tent symbolized the field commander but also denoted that such an office was meant to be temporary. The shōgun's officials were collectively the bakufu (known in English as the shogunate (English: /ˈʃoʊɡəneɪt/ SHOH-gə-nayt)), and were those who carried out the actual duties of administration, while the Imperial court retained only nominal authority. In this context, the office of the shōgun had a status equivalent to that of a viceroy or governor-general, but in reality, shōguns dictated orders to everyone including the reigning Emperor. In contemporary terms, the role of the shōgun was roughly equivalent to that of a generalissimo. Originally, the title of Sei-i Taishōgun ('Commander-in-Chief of the Expeditionary Force Against the Barbarians') was given to military commanders during the early Heian period for the duration of military campaigns against the Emishi, who resisted the governance of the Kyoto-based imperial court. Ōtomo no Otomaro was the first Sei-i Taishōgun. The most famous of these shōguns was Sakanoue no Tamuramaro. In the later Heian period, one more shōgun was appointed. Minamoto no Yoshinaka was named sei-i taishōgun during the Genpei War, only to be killed shortly thereafter by Minamoto no Yoshitsune. In the early 11th century, daimyō protected by samurai came to dominate internal Japanese politics. Two of the most powerful families – the Taira and Minamoto – fought for control over the declining imperial court. The Taira family seized control from 1160 to 1185, but was defeated by the Minamoto in the Battle of Dan-no-ura. Minamoto no Yoritomo seized power from the central government and aristocracy and established a feudal system based in Kamakura in which the private military, the samurai, gained some political powers while the Emperor and the aristocracy remained the de jure rulers. In 1192, Yoritomo was awarded the title of Sei-i Taishōgun by Emperor Go-Toba and the political system he developed with a succession of shōguns as the head became known as a shogunate. Yoritomo's wife's family, the Hōjō, seized power from the Kamakura shōguns. When Yoritomo's sons and heirs were assassinated, the shōgun himself became a hereditary figurehead. Real power rested with the Hōjō regents. The Kamakura shogunate lasted for almost 150 years, from 1192 to 1333. In 1274 and 1281, the Mongol Empire launched invasions against Japan. An attempt by Emperor Go-Daigo to restore imperial rule in the Kenmu Restoration in 1331 was unsuccessful, but weakened the shogunate significantly and led to its eventual downfall. The end of the Kamakura shogunate came when Kamakura fell in 1333, and the Hōjō Regency was destroyed. Two imperial families – the senior Northern Court and the junior Southern Court – had a claim to the throne. The problem was solved with the intercession of the Kamakura shogunate, who had the two lines alternate. This lasted until 1331, when Emperor Go-Daigo (of the Southern Court) tried to overthrow the shogunate to stop the alternation. As a result, Daigo was exiled. Around 1334–1336, Ashikaga Takauji helped Daigo regain his throne. The fight against the shogunate left the Emperor with too many people claiming a limited supply of land. Takauji turned against the Emperor when the discontent about the distribution of land grew great enough. In 1336 Daigo was banished again, in favor of a new Emperor. During the Kenmu Restoration, after the fall of the Kamakura shogunate in 1333, another short-lived shōgun arose. Prince Moriyoshi (Morinaga), son of Go-Daigo, was awarded the title of Sei-i Taishōgun. However, Prince Moriyoshi was later put under house arrest and, in 1335, killed by Ashikaga Tadayoshi.