The recorded military history of Japan began in 2nd century during the Yayoi period. The Yamato tribal alliance fought amongst the Three Kingdoms of Korea, in the 5th century against Goguryeo and Silla and in 663 against Silla and Tang dynasty forces.
The Nara and Heian periods saw clan warfare and the subjugation of the Emishi people. The Kamakura shogunate began the Japanese feudal system, led by the shogun ruler, daimyo lords, and samurai warriors. The 15th to 16th century Sengoku period saw intense civil wars. The 1603-1868 Tokugawa shogunate oversaw a relative peace. Its Satsuma Domain invaded and vassalized Ryukyu in 1609. The sakoku policy limited Japan from foreign influences, from 1641 until the 1853 United States Perry Expedition.