Pre-Ming History
The Mongol-led Yuan Dynasty ruled before the establishment of the Ming Dynasty. Alongside institutionalized ethnic discrimination against Han Chinese that stirred resentment and rebellion, other explanations for the Yuan's demise included overtaxing areas hard-hit by crop failure, inflation, and massive flooding of the Yellow River as a result of the abandonment of irrigation projects. Consequently, agriculture and the economy were in shambles and rebellion broke out among the hundreds of thousands of peasants called upon to work on repairing the dykes of the Yellow River.
A number of Han Chinese groups revolted, including the Red Turbans in 1351. The Red Turbans were affiliated with the White Lotus, a Buddhist secret society. Zhu Yuanzhang was a penniless peasant and Buddhist monk who joined the Red Turbans in 1352, but soon gained a reputation after marrying the foster daughter of a rebel commander. In 1356 Zhu's rebel force captured the city of Nanjing, which he would later establish as the capital of the Ming Dynasty.
Zhu Yuanzhang cemented his power in the south by eliminating his arch rival and rebel leader Chen Youliang in the Battle of Lake Poyang in 1363. After the dynastic head of the Red Turbans suspiciously died in 1367 while hosted as a guest of Zhu, the latter made his imperial ambitions known by sending an army toward the Yuan capital in 1368. The last Yuan emperor fled north into Shangdu and Zhu declared the founding of the Ming Dynasty after razing the Yuan palaces of Khanbaliq to the ground.
Instead of the traditional way of naming a dynasty after the first ruler's home district, Zhu's choice of 'Ming' or 'Brilliant' for his dynasty followed a Mongol precedent of an uplifting title. Zhu Yuanzhang also took Hongwu, or 'Vastly Martial' as his reign title. Although the White Lotus had fomented his rise to power, Hongwu later denied that he had ever been a member of their organization and suppressed the religious movement after he became emperor.
Hongwu Emperor
Hongwu immediately set to rebuilding state infrastructure. He built a 48 km long wall around Nanjing, as well as new palaces and government halls. The Mingshi states that as early as 1364 Zhu Yuanzhang had begun drafting a new Confucian law code known as the Daming Lu, which was completed by 1397 and repeated certain clauses found in the old Tang Code of 653. Hongwu organized a military system known as the weisuo, which was similar to the fubing system of the Tang Dynasty. The goal was to have soldiers become self-reliant farmers in order to sustain themselves while not fighting or training. The system of the self-sufficient agricultural soldier, however, was largely a farce; infrequent rations and awards were not enough to sustain the troops, and many deserted their ranks if they weren't located in the heavily-supplied frontier.
Although a Confucian, Hongwu had a deep distrust for the scholar-officials of the gentry class and was not afraid to have them beaten in court for offenses. He halted the civil service examinations in 1373 after complaining that the 120 scholar-officials who obtained a jinshi degree were incompetent ministers. After the examinations were reinstated in 1384, he had the chief examiner executed after it was discovered that he allowed only candidates from the south to be granted jinshi degrees.
In 1380 Hongwu had the Chancellor Hu Weiyong executed upon suspicion of a conspiracy plot to overthrow him; after that Hongwu abolished the Chinese Chancellery and assumed this role as chief executive and emperor. With a growing suspicion of his ministers and subjects, Hongwu established the Jinyi Wei, a network of secret police drawn from his own palace guard. They were partly responsible for the loss of 100,000 lives in several purges over three decades of his rule.
Fall of the Ming
In 1381, the Ming Dynasty annexed the areas of the southwest that had once been part of the Kingdom of Dali. By the end of the 14th century, some 200,000 military colonists settled some 350,000 acres of land in what is now Yunnan and Guizhou. Roughly half a million more Chinese settlers came in later periods; these migrations caused a major shift in the ethnic make-up of the region, since more than half of the roughly 3,000,000 inhabitants at the beginning of the Ming Dynasty were non-Han peoples. In this region, the Ming government adopted a policy of dual administration. Areas with majority ethnic Chinese were governed according to Ming laws and policies; areas where native tribal groups dominated had their own set of laws while tribal chiefs promised to maintain order and send tribute to the Ming court in return for needed goods. In 1419, the growing Ethnic tension between Chinese Colonists, and Natives reached a boiling point, leading to the Ming Civil War, a War that would change the history of the world as we know it. To the North, the Manchu seceded, with Hongwu's Eldest son Zhū Dì proclaimed Emperor of all of China, while in the south a new Idea had taken hold, with Meili Shihong(Beautiful Red World, literal translation) lead China Proper with the Ideals of Equality, and a new system where anyone could do anything, regardless, of birth. She was proclaimed the First Sole-Empress, leading to the escalation of the Civil War to a Theological War as Zhū Dì's supporters claimed that a Female could never be an Empress, only a "Toy" for which men to use in life, and the afterlife. That of course, would change as Meili Shihong's armies marched north, to end the Civil War, and kill her Brother Zhū Dì.
((Ok, well I have my Backstory, now is Time for the Kingdom of Sky, Dragon, and Heaven to come into existence, stay tuned.))