Goryeo was invaded with the Mongols in seven main campaigns in the 1230s till the 1270s, but was by no means conquered.[117] Exhausted after many years of battling, Goryeo despatched its crown prince for the Yuan capital to swear allegiance to the Mongols; Kublai Khan recognized, and married considered one of his daughters on the Korean crown princ