Minamoto (源; Japanese pronunciation: [mʲi.na.mo.to]) was a noble surname bestowed by the Emperors of Japan upon members of the imperial family who were excluded from the line of succession and demoted into the ranks of the nobility since 814. Several noble lines were bestowed the surname, the most notable of which was the Seiwa Genji, whose descendants established the Kamakura and Ashikaga shogunates following the Heian era. The Minamoto was one of the four great clans that dominated Japanese politics during the Heian period in Japanese history—the other three were the Fujiwara, the Taira, and the Tachibana.
In the late Heian period, Minamoto rivalry with the Taira culminated in the Genpei War (1180–1185 AD). The Minamoto emerged victorious and established Japan's first shogunate in Kamakura under Minamoto no Yoritomo, who appointed himself as shōgun in 1192, ushering in the Kamakura period (1192–1333 AD) of Japanese history. The name "Genpei" comes from alternate readings of the kanji "Minamoto" (源 Gen) and "Taira" (平 Hei).