In the earlier times, Shogun were simply generals for emperors. The emperor had power over the shogun, choosing each shogun. Later however, the Shogun held much of the actual power. In 1192 a samurai, military leader Minamoto no Yoritomo got the title of Shogun from the last Emperor Go-Shirakawa. Excluding the later middle of the 16th century, Shogun was the real ruler of Japan.