|deputy1 = Xie Jin
|deputy2 = Wei Zaode
|year_deputy1 = 1402–1407
|year_deputy2 = 1644
|title_deputy = Senior Grand Secretary
|footnotes=Remnants of the Ming dynasty ruled southern China until 1662, a dynastic period which is known as the Southern Ming.
¹The numbers are based on estimates made by CJ Peers in ''Late Imperial Chinese Armies: 1520–1840''
²According to A. G. Frank, ''ReOrient: global economy in the Asian Age'', 1998, p. 109
³According to A. Maddison, ''The World Economy Volume 1: A Millennial Perspective Volume 2'', 2007, p. 238
The Ming dynasty (), or the Great Ming (), also called the Empire of the Great Ming, was the ruling dynasty of China for 276 years (1368–1644) following the collapse of the Mongol-led Yuan dynasty. The Ming, described by some as "one of the greatest eras of orderly government and social stability in human history,"〔Edwin Oldfather Reischauer, John King Fairbank, Albert M. Craig (1960) ''A history of East Asian civilization, Volume 1. East Asia: The Great Tradition'', George Allen & Unwin Ltd.〕 was the last dynasty in China ruled by ethnic Han Chinese. Although the primary capital of Beijing fell in 1644 to a rebellion led by Li Zicheng (who established the Shun dynasty, soon replaced by the Manchu-led Qing dynasty), regimes loyal to the Ming throne – collectively called the Southern Ming – survived until 1662.
The Hongwu Emperor (ruled 1368–98) attempted to create a society of self-sufficient rural communities ordered in a rigid, immobile system that would guarantee and support a permanent class of soldiers for his dynasty:〔 the empire's standing army exceeded one million troops and the navy's dockyards in Nanjing were the largest in the world. He also took great care breaking the power of the court eunuchs〔Crawford, Robert. "(Eunuch Power in the Ming dynasty )". ''T'oung Pao'', Second Series, Vol. 49, Livr. 3 (1961), pp. 115–148. Accessed 14 October 2012.〕 and unrelated magnates, enfeoffing his many sons throughout China and attempting to guide these princes through the Huang Ming Zu Xun, a set of published dynastic instructions. This failed spectacularly when his teenage successor, the Jianwen Emperor, attempted to curtail his uncles' power, prompting the Jingnan Campaign, an uprising that placed the Prince of Yan upon the throne as the Yongle Emperor in 1402. The Yongle Emperor established Yan as a secondary capital and renamed it Beijing, constructed the Forbidden City, and restored the Grand Canal and the primacy of the imperial examinations in official appointments. He rewarded his eunuch supporters and employed them as a counterweight against the Confucian scholar-bureaucrats. One, Zheng He, led seven enormous voyages of exploration into the Indian Ocean as far as Arabia and the eastern coasts of Africa.
The rise of new emperors and new factions diminished such extravagances; the capture of the Zhengtong Emperor during the 1449 Tumu Crisis ended them completely. The imperial navy was allowed to fall into disrepair while forced labor constructed the Liaodong palisade and connected and fortified the Great Wall of China into its modern form. Wide-ranging censuses of the entire empire were conducted decennially, but the desire to avoid labor and taxes and the difficulty of storing and reviewing the enormous archives at Nanjing hampered accurate figures.〔Zhang Wenxian. "(The Yellow Register Archives of Imperial Ming China )". ''Libraries & the Cultural Record'', Vol. 43, No. 2 (2008), pp. 148–175. Univ. of Texas Press. Accessed 9 October 2012.〕 Estimates for the late-Ming population vary from 160 to 200 million,〔For the lower population estimate, see ; for the higher, see .〕 but necessary revenues were squeezed out of smaller and smaller numbers of farmers as more disappeared from the official records or "donated" their lands to tax-exempt eunuchs or temples.〔 ''Haijin'' laws intended to protect the coasts from "Japanese" pirates instead turned many into smugglers and pirates themselves.
By the 16th century, however, the expansion of European trade – albeit restricted to islands near Guangzhou like Macau – spread the Columbian Exchange of crops, plants, and animals into China, introducing chili peppers to Sichuan cuisine and highly productive corn and potatoes, which diminished famines and spurred population growth. The growth of Portuguese, Spanish, and Dutch trade created new demand for Chinese products and produced a massive influx of Japanese and American silver. This abundance of specie allowed the Ming to finally avoid using paper money, which had sparked hyperinflation during the 1450s. While traditional Confucians opposed such a prominent role for commerce and the newly rich it created, the heterodoxy introduced by Wang Yangming permitted a more accommodating attitude. Zhang Juzheng's initially successful reforms proved devastating when a slowdown in agriculture produced by the Little Ice Age was met with Japanese and Spanish policies that quickly cut off the supply of silver now necessary for farmers to be able to pay their taxes. Combined with crop failure, floods, and epidemic, the dynasty was considered to have lost the Mandate of Heaven and collapsed before the rebel leader Li Zicheng and a Manchurian invasion.