And just as the knights had chivalry in Europe, the samurai in Japan had bushido, which eventually emerges as their code of conduct. Despite that decentralized nature, they were able to fend off invasions from Kublai Khan. So as we've mentioned in other videos, in the 1270s, Kublai Khan is conquering much of China, and he also attempts to conquer Japan. This right over here is a picture of the Mongols shooting arrows at a samurai warrior. Now one of the key factors that keeps Kublai Khan from taking over Japan is on two different occasions, as they send their boats from what we now consider to be Korea to Japan, they encounter significant storms that destroy most of the boats. And so the Mongols, who are able to get to land, are significantly depleted, and they're pushed back by the samurai warriors. Now the Kamakura period continues on until 1333, when there is a brief, only a few years, restoration of the power of the emperor.