Founding the Ming
In 1367 his forces defeated Zhang Shicheng, whose state of Dazhou was centred on Suzhou and covered most of the Yangzi delta. With the south secure, he sent his generals Xu Da and Chang Yuchun north.
In 1368 he proclaimed himself emperor of the Ming at Nanjing, with Hongwu as his era name. Rallying the Han Chinese with the call to expel the Mongols and restore Chinese rule, his armies took Shandong and Henan, and later the same year they entered Dadu, the Yuan capital, now Beijing. The Yuan emperor Toghon Temür fled north, and Yuan rule over China came to an end. Yunnan, still held by a Yuan prince, was invaded in 1381, and by 1382 China proper was again united.
The new dynasty set out to undo Mongol rule. Mongol dress and names were abandoned, the classical sacrifices of Chinese rulers were restored, and Han Chinese officials replaced the Mongols who had dominated government. The civil service examinations were restored as the route into office, with the Confucian classics at their heart, and the scholar-gentry whom the Yuan had sidelined returned to the service of the state. Nanjing, the new capital, was enclosed by a city wall more than thirty kilometres long, much of which still stands.
Governing the Empire
Having known poverty himself, Hongwu blamed the sufferings of his youth on corrupt officials and greedy landlords, and he set out to protect the farmers. Land was given to small farmers, dykes and irrigation works were built, and the forced labour that the court and the gentry could demand was reduced. Those who brought waste land under cultivation could keep it free of tax, and by 1393 the cultivated area had grown considerably. In 1372 he ordered the release of all free people who had been enslaved under the Mongols.
To keep taxation fair, he had the population recorded in the Yellow Registers and the land in the Fish Scale Registers, named for their maps of overlapping plots. They protected both the state's income and people's rights to their land.
His law code, the Da Ming Lü or Code of the Great Ming, was begun as early as 1364. He wanted it clear and complete, so that officials could not exploit its gaps. It placed great weight on family relations and protected slaves far better than the Tang code, which had classed them with property. In the 1380s he added the Da Gao, or Grand Pronouncements, a much harsher set of laws aimed above all at corrupt officials. An official who embezzled more than 60 liang of silver (a liang weighed about 37 grams) was beheaded and flayed, and his skin was put on public display. Ordinary people were given the unprecedented right to seize corrupt officials and bring them to the capital. The Da Gao also bore down on idle men and laid down detailed rules on what commoners might own.
To guard the dynasty he relied on his family. From 1370 his sons were made princes and, as they came of age, sent to fiefs across the empire, those on the northern frontier with substantial armies of their own; the most powerful was his fourth son, Zhu Di, Prince of Yan, at Beijing. The army was organised in hereditary military households, given land to farm so that the garrisons could largely feed themselves. Towards the outside world he was wary: private overseas trade was banned from the early 1370s, and contact with foreign states was confined to tribute missions to the court.
In 1380 the emperor accused his chancellor, Hu Weiyong, of plotting against him. Hu was executed, the office of chancellor was abolished, and the ministries came under the emperor's direct control. The investigation went on for years, and together with his campaigns against corruption it cost tens of thousands of lives. Empress Ma, who was remembered for tempering her husband's severity, died in 1382.
He took a close interest in learning and ideas. He tried to remove Mencius from the Temple of Confucius, and when senior officials objected he had an abridged Mencius compiled with 85 passages removed. At the imperial academy in Nanjing students studied law, mathematics, archery, horsemanship and calligraphy alongside the classics. His Six Maxims for the people later inspired the Sacred Edict of the Kangxi Emperor, and around 1384 he had the Islamic astronomical tables translated into Chinese as the Huihui Lifa.