Kublai, of the Borjigin clan, born 1215, grandson of Genghis Khan and fourth son of Tolui, was the founder of the Yuan, temple name Shizu. Charged young with governing the Mongol south lands, he gathered Chinese scholars and learned their methods. When Moengke died in 1259 at the siege of Diaoyu, Kublai declared himself khan at Kaiping and won four years of succession war against his younger brother Ariq Boeke — the unity of the Mongol khanates broke with it, the hordes drifting into independence. From 1267 he launched the war on Song; in 1271, taking 'the great of the Qian' from the Book of Changes, he named the dynasty Great Yuan, and next year fixed the capital at Dadu (Beijing); Lin'an fell in 1276, and the naval battle of Yashan in 1279 ended the Southern Song and completed the unification. In state-building he created the branch-secretariat province system, urged farming and sericulture, circulated paper money and spread the post roads; twice he invaded Japan, and twice the Kamakura bakufu turned him back. He died in 1294; the institutions he set stood through Ming and Qing.