Zhu Yuanzhang (1328-1398), original name Chongba, a native of Zhongli in Haozhou, founded the Ming dynasty — temple name Taizu, era name Hongwu. Born the poorest of farm families, he lost parents and elder brother to famine and plague in youth, served as a novice at the Huangjue temple and begged his way for three years. In 1352 he joined the Red Turbans under Guo Zixing at Haozhou, rose by battlefield daring to a command of his own, took Jiqing (Nanjing) in 1356 and renamed it Yingtian, and there built his base on the counsel 'raise high the walls, stock the granaries wide, be slow to claim the crown', destroying the rival warlords Chen Youliang and Zhang Shicheng in turn. In the first month of 1368 he proclaimed the Great Ming at Yingtian with the era Hongwu, and in the same year sent Xu Da and Chang Yuchun north: the armies entered Dadu, the Yuan court fled to the steppe, and Mongol rule over all China ended. Over thirty-one years on the throne he abolished the Secretariat and the chancellorship altogether, routing government through the six ministries, set three provincial commissioners to split local power, built the weisuo garrison system, promulgated the Great Ming Code, punished corruption without mercy, restored the examinations — and multiplied the literary inquisition. The autocratic machine he built carried the Ming for nearly three hundred years.