1293 Kublai Khan wanted to wage war as early as 1268, only to find that North Korea did not have enough financial resources to provide sufficient army and navy. 1273, he sent an army to North Korea as a pioneer, but as a result, this army could not be self-sufficient in North Korea and was finally forced to return to the Yuan Dynasty for supplies. Because the horses needed by the Yuan army and the pasture for raising horses seriously restricted the action of the troops, so that the Yuan army could not move in almost barren places. 1274 yuan army fleet finally set off. Among them,15,000 Mongolian and Han soldiers and 8,000 Korean warriors took 300 large warships and 400 to 500 small warships. This unit easily occupied Tsushima Island and Yiqi Island, and landed at Hakata Port near Taizaifu, the capital of ancient Kyushu, on 10/19. The next day, there was a battle of Wen Yong, that is, the battle of Hakata Port. Although the Yuan Army was superior in weapons and tactics, their numbers were far less than those of the Japanese samurai who had been prepared for a long time, and these samurai were reinforced after learning that Tsushima Island and Yiqi Island had fallen. Insist on the whole day, the night storm, the yuan army had to withdraw.
Starting from 1275, the shogunate began to prepare for the second invasion that they thought would be carried out soon. In addition to better organizing the samurai in Kyushu, they also built forts and other defense facilities at many possible landing sites, including Hakata Port. At the same time, King Koryo negotiated with the Yuan Dynasty many times and opposed the plan of further aggression against Japan. The Yuan Dynasty also sent envoys to Japan, but Japan twice ordered the envoys sent by the Yuan Dynasty to be beheaded. Kublai Khan was very angry and began to actively plan the second invasion.