In 1289 a famine in China resulted in a demand for 100,000 bags of rice from Koryŭ. The king was at his wits end but by great exertion and self-sacrifice on the part of the officials 60,000 bags were collected. They were sent by boat, but 6000 were destroyed in a storm and 300 men were lost.
But now in 1290 a new element of danger appeared in the shape of the wild tribe of T‘ap-dan across the northern border who began to ravage the outlying Koryŭ towns. When they had penetrated the country as far as Kil-ju the king sent an army against them, but more than 20,000 came swarming down from the north and seized two districts in Ham-gyŭng Province. They ate the flesh of men and dried the flesh of women for future consumption. The Koryŭ troops held them in check at first. The emperor sent 13,000 troops to reinforce the Koryŭ army. In spite of this, however, the king felt obliged to take refuge in Kang-wha for fear of surprise. The following year the T‘ap-dan savages came as far south as Kyŭng-geui Province and all the officials and many of the people fled before them. It was a literary man of Wŭn-ju who was destined to be the first to bring them to a halt. Wŭn Ch‘ung-gap gathered about him all the strong men of the neighborhood and drove back the van of the invading force. Then the great body of the savage horde came and surrounded the town. Wŭn killed the messengers they sent demanding surrender, and sent back the heads as answer. A desperate attack was made but the little garrison held firm till by a lucky chance a rumor of some kind caused a panic among the attacking forces and in the stampede that followed every man’s sword was at his neighbor’s throat. While this was going on Wŭn and his fellows made a sudden sally and captured the savage chief To Cha-do, and sixty of his attendants were cut down. The rabble then took to their heels and from that day never dared to attack any considerable town. The spell of terror which had held the people of Koryŭ was now broken and they found no more difficulty in keeping these savages at arm’s length. Ten thousand Mongol troops arrived and began a campaign against these freebooters and in Ch‘ung-ch‘ŭng Province had a splendid victory over them, leaving, it is said, a line of thirty _li_ of dead as they pursued the flying enemy. When the Mongol troops went back home, their general told the emperor that the war had destroyed the crops of Koryŭ and that 100,000 bags of rice must be sent. The emperor consented, but when the rice arrived the officials and men of influence divided the rice among themselves, while the people went without.