The design of Dadu followed the Confucianism classic Zhouli (周禮, "rites of Zhou"), in that the rules of “9 vertical axis, 9 horizontal axis”, “palaces in the front, markets in the rear”, “left ancestral worship, right god worship” were taken into consideration. It was broad in scale, strict in planning and execution, complete in equipment.[17] Dadu officially became the capital of the newly established the Yuan dynasty in the 1270s, though some constructions in the city were not completed until 1293. It would last until 1368 when Zhu Yuanzhang, the founder of the Ming dynasty and future Hongwu Emperor, made his imperial ambitions known by sending an army toward the Yuan capital.[18] The last Yuan emperor fled north to Shangdu and Zhu declared the founding of the Ming after razing the Yuan palaces in Dadu to the ground,[18] and the city was renamed to Beiping by the Ming in the same year.