During the Trần dynasty, Vietnam successfully resisted three invasions by the Mongol Empire and the Yuan dynasty. Thereafter, the Ming dynasty administered Vietnam for two decades. Vietnamese soon came to see their state as the "southern state" in relation to China as the "northern state".