By 1356 Goryeo under King Gongmin regained its lost northern territories such as the Ssangseong Prefecture placed under the Liaoyang province by the Yuan. He also repulsed the Red Turban invasions of Goryeo in 1360. However, even after the eventual expulsion of the Yuan dynasty from China in 1368, some Goryeo kings such as U still favored the Yuan, still a formidable power in Mongolia as the Northern Yuan, over the Ming dynasty established by Han Chinese. This changed with the overthrow of Goryeo in 1392 by Yi Seong-gye, founder of Joseon dynasty.