At the end of the Heian Period in the late 12th century, the Samurai class gained prominence with the rise of Heike (the Taira family) originated from Hokumen no bushi (warriors who served Emperor Daijo to provide protection) that was given an important position during the times of Insei (Cloistered politics) and Genji (the Minamoto clan) who defeated Heike, the military government, the Kamakura bakufu formally came into power in 1192.
12世紀後半の平安時代末期には、院政に際して重用された北面の武士に由来する平家の興隆や、それを倒した源氏などによる武家社会が台頭し、1192年に武家政権である鎌倉幕府が正式に成立した。