 According to "Yuanshi", the official history of the Yuan dynasty, the Mongols invaded Sakhalin and militarily subdued the "Guwei" (骨嵬, "Gǔwéi"), and by 1308, all inhabitants of Sakhalin had submitted to the Yuan.The Nivkhs were subjugated earlier, whereas the Ainu people submitted to the Mongols later.Following their subjugation, "Gǔwéi" elders made tributary visits to Yuan posts located at Wuleihe, Nanghar, and Boluohe until the end of the Mongol Yuan dynasty in China (1368).