From a military perspective, the failed invasions of Kublai Khan were the first of only three instances when the samurai fought foreign troops rather than amongst themselves; the others being Japanese invasions of Korea (1592–98) and the Japanese invasion of Ryukyu (1609).