As Mongols from the north engaged in their conquest of China in the 13th century, the Southern Song court fled southwards from its capital in Hangzhou. The defeat of the Southern Song court by Mongol naval forces in The Battle of Yamen 1279 in Guangdong marked the end of the Southern Song dynasty (960–1279).