structural:expansion, structural:scholar_edition, quality:corruption
Late Heian period and the rise of samurai

During the reigns of Emperor Shirakawa and Emperor Toba, the Taira clan became Kokushi (国司), or overseers of various regions, and accumulated wealth by taking samurai from various regions as their retainers. In the struggle for the succession of Emperor Toba, Emperor Sutoku and Emperor Go-Shirakawa, each with his samurai class on his side, fought the Hōgen rebellion, which was won by Emperor Go-Shirakawa, who had Taira no Kiyomori and Minamoto no Yoshitomo on his side. Later, Taira no Kiyomori defeated Minamoto no Yoshitomo in the Heiji rebellion and became the first samurai-born aristocratic class, eventually becoming Daijō-daijin, the highest position of the aristocratic class, and the Taira clan monopolized important positions at the Imperial Court and wielded power. The victor, Taira no Kiyomori, became an imperial advisor and was the first warrior to attain such a position. He eventually seized control of the central government, establishing the first samurai-dominated government and relegating the emperor to figurehead status. The clan had its women marry emperors and exercise control through the emperor.

However, when Taira no Kiyomori used his power to have the child of his daughter Taira no Tokuko and Emperor Takakura installed as Emperor Antoku, there was widespread opposition. Prince Mochihito, no longer able to assume the imperial throne, called upon the Minamoto clan to raise an army to defeat the Taira clan, and the Genpei War began. In the midst of the Genpei War, Minamoto no Yoshinaka expelled the Taira clan from Kyoto, and although initially welcomed by the hermit Emperor Go-Shirakawa, he became estranged and isolated due to the disorderly military discipline and lack of political power under his command. He staged a coup, overthrew the emperor's entourage, and became the first of the Minamoto clan to assume the office of Sei-i Taishōgun (shogun). In response, Minamoto no Yoritomo sent Minamoto no Noriyori and Minamoto no Yoshitsune to defeat Yoshinaka, who was killed within a year of becoming shogun. In 1185, the Taira clan was finally defeated in the Battle of Dan-no-ura, and the Minamoto clan came to power.