Major military efforts were taken by Kublai Khan of the Yuan dynasty in 1274 and 1281 to conquer the Japanese archipelago after the submission of the Korean kingdom of Goryeo to vassaldom. Ultimately a failure, the invasion attempts are of macro-historical importance because they set a limit on Mongol expansion and rank as nation-defining events in the history of Japan. The invasions are referred to in many works of fiction and are the origin of the word kamikaze (神風 "divine wind"), first used to describe the typhoons that destroyed the Mongol invasion fleets in the 13th century. The term was later adopted in the 20th century to describe Japanese pilots who deliberately crashed their aircraft into enemy warships during the last years of World War II.

The invasions were one of the earliest cases of gunpowder warfare outside of China. One of the most notable technological innovations during the war was the use of explosive, hand-thrown bombs.

Background

After a series of Mongol invasions of Korea between 1231 and 1281, Goryeo signed a treaty favouring the Mongols and became a vassal state. Kublai was declared Khagan of the Mongol Empire in 1260, although it was not widely recognized by the Mongols in the west, and established his capital at Khanbaliq (now in Beijing) in 1264.

Japan was then ruled by the Shikken (shogunate regents) of the Hōjō clan, who had intermarried with and wrested control from Minamoto no Yoriie, shōgun of the Kamakura shogunate, after his death in 1203. The inner circle of the Hōjō clan had become so pre-eminent that they no longer consulted the council of the shogunate (), the Imperial Court of Kyoto, or their gokenin vassals, and they made their decisions at private meetings in their residences ().

The Mongols also made attempts to subjugate the native peoples of Sakhalin, the Ainu and Nivkh peoples, from 1264 to 1308.The conquest of Ainu lands: ecology and culture in Japanese expansion, 1590–1800 By Brett L. Walker, p.133 However, it is doubtful if Mongol activities in Sakhalin were part of the effort to invade Japan.

Contact

Between 1266 and 1273, Mongol and Korean diplomatic missions went to Japan on six occasions to demand submission to the Mongols, but the Japanese ignored their demands.

In 1265, a well-traveled Goryeo citizen told Kublai that the Mongols should bring Japan to vassalage. Kublai agreed and named Heuk Chŭk and Eun Hong as envoys to Japan. They were ordered to go to Goryeo and request that the king appoint an additional envoy to join them. They delivered this message to Wonjong and two of his officials, Son Gunbi and Kim Chan, were appointed to join them on their journey. On their departure, they were met by a storm, and the Mongol envoys were forced to return home. Kublai was unsatisfied with the outcome and sent Heuk Chŭk back ordering Wonjong to forward the Mongol envoys to Japan.

Yi Changyong, a senior Goryeo minister, attempted to dissuade the Mongols from their plans on Japan. Kublai sent a general, Uya Sondal, to demand that Yi Changyong and Kim Chun, head of the Goryeo military regime, the two most influential officials of Goryeo, be brought to the Yuan court. Instead, Kim had Sondal put to death. This frightened Wonjong, who didn't want to offend the Mongols, but he dared not lay a hand on Kim. Having gone unpunished, Kim and his family began to disrespect the king. Wonjong and Im Yŏn, an official who hated Kim, summoned him to court and killed him.

The Mongol and Goryeo envoys ultimately reached Japan but were treated with incredible disrespect. They were not permitted to enter the capital city, and the Japanese refused to give them lodgings worthy of foreign dignitaries. Instead, they were forced to stay at an inn called Tajabu outside the west gate of the city. They remained there for five months with poor entertainment and bad accommodations before being dismissed without receiving an answer. Kublai could not believe that his envoys had been treated with such disrespect and suspected that this was a ruse by Wonjong, so he sent Heuk Chŭk back to Japan, this time accompanied by the Goryeo envoy, Sim Sa-jŭn. The envoys had not returned by 1268 but ultimately left after their letter was rejected by the Japanese.

The letter stated:

In early 1269, another mission of 70 Koreans and Mongols arrived on Tsushima Island, demanding an answer from Japan to the khagan's letter. The imperial court wanted to respond, but the Kamakura shogunate overruled them. A defiant response to the khagan's demands was drafted but ultimately not delivered.

In late 1270, a final mission was dispatched by Kublai to Japan. The mission was led by the Yuan official Zhao Liangbi and comprised 24 scribes. By now, the Japanese were tired of Mongol entreaties. Upon their arrival in early 1271, the delegation was confronted by armed samurai and taken into military custody. Zhao was freed, but he was denied an audience with the "king of Japan". After delivering their letter and receiving no reply, they went home. Zhao waited for a response until 1273 before returning to China. Irritated and angry, he composed a report for Kublai denigrating the Japanese as mannerless barbarians and urged him not to waste the empire's resources conquering them.

Japan took seriously the letter brought by the second diplomatic mission to Japan in 1268 as an omen of invasion; shrines and temples were instructed to pray for the repulsion of foreign troops and the central government suspended most of its regular duties to focus on building up defenses around Kyushu.

First invasion preparations

In April 1274, the Yuan instructed Indü and Hong Dagu to mobilize 15,000 men for the invasion of Japan. The Korean general Kim Panggyong led a force of 30,500 to build ships in the fashion of the Southern Chinese. A man from Shandong named Qi Gongzhi who helped Kublai design ships was ordered to Korea where he spent a few months before being sent to Xiangyang for the invasion of southern China. Three types of ships were constructed: 300 large thousand dan ships, 300 batulu fast boats, and 300 tenders. Hong Dagu was put in charge of the construction of large transports while Chaqu supervised the construction of the batulu fast boats. Goryeo was responsible for providing the labor, material, and cost of the construction, which they protested. The construction was finished on 5 July 1274. The invasion fleet was scheduled to depart in the seventh lunar month of 1274 but was delayed for three months due to the death of Wonjong on 23 July and Indü and Liu Fuheng's tardiness. They did not arrive until September.

Kublai planned for the fleet to first attack Tsushima Island and Iki Island before making landfall in Hakata Bay. The Japanese plan of defense called on local lords, or gokenin, to contest the invaders at every opportunity. Both Yuan and Japanese sources exaggerate the opposing side's numbers, with the History of Yuan putting the Japanese at 102,000, and the Japanese claiming they were outnumbered at least ten to one. In reality, there are no reliable records of the size of Japanese forces, but estimates put their total numbers at around 4,000 to 6,000. The Yuan invasion force was composed of 15,000 Mongol, Han Chinese, and Jurchen soldiers, 6,000 to 8,000 Korean troops, and 7,000 Korean sailors.

A story widely known in Japan is that back in Kamakura, Tokimune was overcome with fear when the invasion finally came and wanting to overcome his cowardice, he asked Mugaku Sogen, his Zen master, also known as Bukkō, for advice. Bukkō replied that he had to sit in meditation to find the source of his cowardice in himself. Tokimune went to Bukkō and said, "Finally there is the greatest happening of my life." Bukkō asked, "How do you plan to face it?" Tokimune screamed, "Katsu!" as if he wanted to scare all the enemies in front of him. Bukkō responded with satisfaction, "It is true that the son of a lion roars as a lion!" Since then, Tokimune was instrumental in spreading Zen and Bushido in Japan among the samurai.

First invasion (1274)

Invasion of Tsushima The Yuan invasion forces set off from Hoppo (, now Masan, South Gyeongsang Province, Korea) on 2 November 1274 (Dōngyuè 5 in the Chinese calendar). Two days later they began landing on Tsushima Island. The principal landing was made at Komoda beach near Sasuura, on the northwestern tip of what is now the southern island of Shimojima. Additional landings occurred in the bay of Asō, as well as at two points on what is now the northern island of Kamijima.

The main source of the events is based on contemporary Japanese sources, notably the Sō Shi Kafu, a history of the Sō clan of Tsushima.

At Sasuura, the invasion fleet was spotted offshore, allowing the deputy governor (jitodai) Sō Sukekuni time to organize a hasty defense. On that day, the shrine to Hachiman caught fire, which would have been an omen of bad luck, but Sukekuni interpreted it as an omen of warning.

With just 80 mounted samurai and their retinue, Sukekuni confronted an invasion force that the Sō Shi Kafu describes as "8,000 warriors embarked on 900 ships". The Mongols landed at 02:00 in the morning on 4 November, and when Sukekuni sent representatives to attempt to negotiate with them, they were driven off by archers. The fighting began by 04:00. The small garrison force was quickly defeated, but according to the Sō Shi Kafu, one samurai, Sukesada, cut down 25 enemy soldiers in individual combat. The invaders defeated a final Japanese cavalry charge around nightfall; Sukekuni was among those slain.

After their victory at Komoda beach, the Yuan forces burnt down a majority of the buildings around Sasuura and slaughtered most of the inhabitants. They secured their control of Tsushima over the next few days.

Invasion of Iki Island The Yuan fleet departed Tsushima on 13 November and attacked Iki Island. Like Sukekuni, Taira no Kagetaka, the governor of Iki, gave a spirited defence with 100 samurai and the local armed populace before falling back to his castle by nightfall. The next morning, Yuan forces had surrounded the castle. Knowing that defeat was inevitable, Kagetaka sent his daughter with a trusted samurai, Sōzaburō, on a secret passage to the shore where a ship was waiting to take them to the mainland. Mongol archers spotted them and fired on the ship; Kagetaka's daughter was killed, but Sōzaburō managed to reach Hakata Bay and report Iki's defeat.

Kagetaka made a final failed sortie with 36 men, 30 of whom died in battle, before committing suicide with his family. According to the Japanese, the Mongols held down the surviving women and stabbed them through their palms with knives, stripped them naked, and tied their corpses to the sides of their ships to demonstrate to other Japanese what their fate would be if they did not surrender.

Landing in Hakata Bay The Yuan fleet crossed the sea and landed in Hakata Bay on 19 November, a short distance from Dazaifu, the ancient administrative capital of Kyushu. The following day brought the Battle of Bun'ei (文永の役), also known as the "First Battle of Hakata Bay".