During the 13th century, the Mongol Empire invaded China and defeated the Jin and Song dynasties. In 1271, Kublai Khan proclaimed the Yuan dynasty of China in the traditional Chinese style. During the period of 1231–1259, the Yuan dynasty invaded Korea, ultimately resulting in the capitulation of Goryeo and becoming a tributary state of the Yuan dynasty for 86 years until achieving its independence in 1356. The Yuan dynasty eventually fell in 1368 and King Gongmin of Goryeo expanded its northern territory.