In 1271, he declared the creation of the Yuan dynasty and named his capital Dadu (, Chinese for "Grand Capital", or "Daidu" to the Mongols). It is also known by the Mongol name Khanbaliq (), spelled "Cambuluc" in Marco Polo's account. Construction of Dadu began in 1267 and the first palace was finished the next year. The entire palace complex was completed in 1274 and the rest of the city by 1285. In 1279, when Mongol armies finished off the last of the Song dynasty in southern China, Beijing became for the first time, the capital of the whole of China. After the construction of Dadu, Xanadu, also known as Shangdu, became Kublai Khan's summer capital.