The Expanded Recapitulation.
Between the years 1626 and 1662, Ming Dynasty China, for long in general decline, underwent a crisis (in the medical meaning of the word). It all begun as the drawn-out war with the Later Jin Jurchens, who had established themselves in the crucial northern province of Liaoyang, entered a decisive phase. The Jurchens had superior numbers and organisation, but the Ming were blessed with generally better troop and leader quality, as well as a technological advantage and the assistance of their Korean allies. Of particular prominence was the Ming general Yuan Chonghuan, who, it is believed, ensured a complete Ming victory by making good use of all of his advantages and, after countering numerous Jurchen offensives over the course of 1626-1629 (killing the Jurchen khan Nurhachi in the process), launching a bold offensive in Liaoyang. In a campaign that combined the attributes of siege and maneuver warfare, the Sino-Korean forces not only reclaimed the provincial capital of Liaodong, but also routed the main Jurchen forces when the latter attempted to retake that city in 1632. The rest of Liaoyang was reconquered by the year's end, the Jurchens were forced to flee north and the Later Jin dynasty was mostly exterminated, the last Regent, Dorgon, commiting suicide. With a resounding military victory and newly freed-up troops, China's Chongzhen Emperor could feel at least a bit more secure and confident. He could also fully turn to domestic issues now, which was especially important as they were quite grave; the Beijing court was rife with partisanship, the officialdom was corrupt and the peasants were simply revolting.
For much of Chongzhen's reign (1627-1657), there were some urban riots and wandering rural warbands. Isolated rebellions occured now and then, but there were two waves of trully major rebelions - in the early 1640s and in the late 1640s-early 1650s. Rebels overran entire provinces, mostly in the west and in the centre; still, they were inevitably defeated. This was seriously helped by Yuan Chonghuan's sadly-incomplete military reforms in the 1640s. Chongzhen himself also introduced some reforms of his own, most notably overhauling the provincial administration and liberalising the foreign trade. Also noteworthy were the subsidies for the devastated farmers and the constant purges at court, which had claimed Yuan Chonghuan amongst others. By 1657 a degree of peace and quiet was reestablished in China, while the port cities, in spite of all problems, entered a boom period like none before. However, underlying problems remained; the peasantry still remained largely impoverished and understandably not content with its lot, the court remained corrupt and full of underground intrigues and factionalism, and the military and the southern bourgoise - the two main beneficiaries of Chongzhen's reign - grew increasingly ambitious and discontent with the present courtly policies. The somewhat complicated succession issues and the fact that Chongzhen, having amassed such great power, happened to pass away so suddenly, soon allowed for a civil war (1658-1662). While the legitimate heir - a puppet of his court - ascended to the throne in Beijing as the Tianzhen Emperor, Zhu Yujian, the Prince of Tang, concluded an alliance with the strongest general, Wu Sangui, in his own bid for the throne. After the failure of Wu Sangui's military coup, the conspirators and their retainers fled to Nanjing, where the Prince of Tang managed to rally the increasingly powerful city-dwellers around his new government and established a court of his own, declaring himself the Longwu Emperor. Losing no time, he did his best to win over the support of both the urban factions and of the peasantry (by promising reforms), receiving troops, funds and supplies; he also received mercenaries and very modern firearms from the Europeans and the Japanese. Though both factions of the civil war (the pro-Tianzhen Bei Ming and the pro-Longwu Nan Ming) were plagued by internal division, the Bei Ming suffered a major blow when one of their most important generals rebelled after failing to take Nanjing; they never did manage to reclaim the initiative, while Wu Sangui commanded a risky, yet succesful campaign, capturing Beijing in 1662 (the Nan Ming capital remained in Nanjing, though). Tianzhen commited suicide. Although many parts of China, especially in the west, remained anarchic, the greater part of China was now in Longwu's hands. As what came to be known as the Nan Ming Dynasty assumed power and the turmoil receded, the Longwu Emperor, aware of his approaching death, turned his attention to reform...
The Aftermath.
The move of the Chinese capital from Beijing to Nanjing, though not initially intended as such, symbolised a far greater geopolitical shift. One must remember that the very reason the Yongle Emperor moved the capital from Nanjing to Beijing back in 1403 was to supervise the execution of his various grand projects and plans for northern China, which was to be thoroughly rebuilt and repopulated; infrastructure was to be restored, the Great Wall was to be repaired and strenghthened, the Mongols were to be destroyed, divided or both; in short, north was to be fully recovered and the northern frontier was to be fortified. Not all of the plans worked, but as the Jurchen threat was eliminated and the other Mongols were embroiled in internicine strife, this seemed to have paid off (to say nothing of northern China becoming one of the richest and most densely-populated parts of the world - though that had again declined by now). Yet - as the Longwu Emperor couldn't but notice in Nanjing, while talking with local merchants and Europeans - the world has by now changed greatly. The best opportunities and the direst threats were no longer in the north, but rather in the ocean, where trade was more active than ever before, and where pirates and conquistadors roamed. Ever since the lifting of the ban on private trade with Southeast Asia (in 1567), the Chinese merchants established a serious presence in Southeast Asia, while the Europeans too frequented the coast, but a lot of the trade conducted was still of the illegal (and thus, untaxable) kind. In Nanjing, Longwu and his collaborators seeked to exploit the opportunities, counter the threats and adapt new policies that would both facilitate trade and make sure that the profits go to the treasury. The north and the steppe matters took a backseat from now on, while Longwu cracked down on illegal trade, introduced tariffs and subsidised reliable merchants, while docks were being expanded and the fleet was being rebuilt (with some help from a few European specialists, the Nan Ming were able to combine some of the best ideas of both Chinese and European naval technology). Ambassadors were dispatched to Europe and new trade agreements were negotiated (of particular interest to Longwu were the Dutch, on the account of their feud with the Portuguese; but that would come up a bit later). A Board of Trade was set up to supervise the reforms and resolve various trade-related issues. Soon income begun to pour in. This allowed for other reforms to be carried out as well, as China recovered from a century of decay and three decades of chaos.
First and foremost, various relief and repopulation programmes were organised for the particularily damaged and neglected provinces, mostly in the west. Local government was reestablished along old guidelines, though it was placed under closer central scrutiny; for that and similar purposes, the Jinyi Wei ("Brockade-Clad Guard") were rebuilt, but their powers were now limited and their supreme commander now answered to the Emperor himself. The Jinyi Wei watched over the officials and made sure that they steer clear of treason, corruption and other unwanted behaviour. If they didn't, the Jinyi Wei acted with their good old reliable crazed brutality, though the Emperor did his best to curb the particularily unsavoury excesses. As order in the provinces was reestablished, ofcourse, the central administration was also normalised, with a proper court established at Nanjing; however, Longwu made sure to limit its size and introduced some comparatively puritan rules to limit the self-indulgence of the courtiers, hoping to prevent it from becoming as bloated and corrupt as that of the late Bei Ming. In the regards of the eunuchs especially, the very rigid and strict rules of the Ming Dynasty's founder Hongwu were restored and imposed with particular vigour (Longwu didn't have particularily good relations with the court eunuchs early in his life), eradicating their power, at least at the first glance. At the same time, Longwu made sure that his sons and other male relatives participated in politics; he even sent one of his children to Amsterdam.
The Longwu Emperor made an effort to confront the problem of rural poverty and the land-tenure issues, mostly by conventional means of taxation adjustments (in favour of the tenants). Some more laws were introduced to limit landowner abuse of the tenants. Major land reclamation projects were started in the late 1660s/early 1670s, and the introduction of "new" American crops was facilitated. The military settlement system was also repaired; thanks to Yuan Chonghuan's reforms favouring quality over quantity, the strain on the land decreased, and some of the lands were given away to eager poor farmers as well. The largest change in the Chinese agriculture - a shift to a contractual system of labour - was however mostly independent from state policies. Whether naturally or thanks to Imperial actions, the social tensions decreased and prosperity increased, as China generally emerged from the chaos. Some dissent still remained, especially in the "neglected" north; there were a few rebellions, but they were dealt with (while we're at it, so were a few court conspiracies).
As the initial tax remissions for the devastated areas ended, the Longwu Emperor, although increasingly bedridden, could note with satisfaction that the economy has recovered and the treasury was growing. The money went into various new public works, and into the construction of a mighty fleet. This was sped up by the arrogant Portuguese refusal to abandon Macao and by the declaration of Dutch readiness. You see, although the Ming did tolerate the Portuguese presence in Macao, they mostly did so due to being preoccupied with other matters; for most of the 16th century it was the various court intrigues and whatnot, and under Chengzhen it were Jurchens and rebels. Longwu was at first busy with consolidating the new dynasty's power and carrying out the reforms, but as the Portuguese continued to conduct illegal commerce in coastal areas and even launched thinly-veiled "pirate raids", the Emperor had had enough, and launched in 1674 the first of what would come to be known as the "Great Southern Campaigns". The grand new Chinese fleet converged with the Dutch expeditionary fleet from the East Indies off the shores of the island of Coloane. After a brief skirmish the Portuguese fleet retreated to dock, and the Sino-Dutch navy started bombarding the city and its fortifications, attacking both of the main islands. Meanwhile a Chinese army started an assault on the small peninsula (the city's northernmost part); the Portuguese resisted stalwartly and efficiently, but gradually lost ground. As the tiny garrison became even tinier and the determination of the attackers became apparent, the governor surrendered. The Portuguese were granted three days to evacuate the city with Dutch help.
At this point, a few complications appeared as it became clear that the Dutch wanted Macao for themselves, something that Longwu was unwilling to give them. After some negotiations with the VOC, a completely different solution was reached; the Chinese received not just Macao (from now on called Aomen), but also Fort Zeelandia (which was renamed to Anping and became the primary base for the Chinese colonisation of Taiwan). In return the Dutch were granted a trade agreement with special privileges (such as storage rights), and were granted special quarters in Canton, Aomen and Shanghai. Although the English, the Spanish and even the Portuguese did already have trade agreements with China, theirs were less convenient terms, and the Dutch were more than glad to give up Fort Zeelandia for that (it was way too far from the centre of the VOC empire anyway). The following decade was basically the VOC's peak.
As for the Portuguese, they were more than a bit upset, and even tried to get the English to attack the Dutch, but to no avail and so they decided to let it be, aware that they were incapable of changing the situation and taking some consolation from the fact that the Dutch attack on Goa next year had failed miserably.
And the Chinese extended their economic reach, organised new state-sponsored trade guilds for the East Indies and started working on the conquest of Taiwan, which became part of the Fujian province. Resistance was existant, but rather sporadic and weak, and it was really a matter of time. More time than Longwu had left; he died in 1676. Miracilously, the transition of power was mostly peaceful, in spite of Longwu having many prominent sons; one of them did attempt to prevent the eldest surviving son's rise to power, but was thwarted, while the others already had good positions and did not try and go against the law.
The new Hangjun Emperor oversaw the continuation of reforms and the colonisation of Taiwan. He neglected the court somewhat, and the first signs of corruption gradually begun to appear again, though the austerity of the early Nan Ming mostly survived for now. Instead, the Hangqing Emperor took great interest in military matters, technology and ship-building; it is for a reason that some called him the "Fleet's Emperor", as ever since leading the Chinese fleet in the Aomen Campaign the then-Prince of Tang (a position that by now became associated with the heir apparent) was a fleetomaniac. The work that his father had begun in the naval sphere the Hangjun Emperor had perfected and improved upon; more specialists were invited, superior shipyards were set up, better designs were created and the fleet was expanded considerably. Expeditions were dispatched in numerous directions, including the first Chinese around-the-world journey under the command of Admiral Hong Lin, and contact with Europe was increased. As for the military activities, the fleet continued cracking down on illegal shipping and piracy; more interestingly the Hangjun Emperor had also answered the pleas of Ryukyu conspirators, and pledged support for a 1678 rebellion against the Shimazu clan which de facto ruled the islands since 1609. In a quick campaign, the Shimazu fleet was crashed and the island kingdom came under Chinese protection. This was in keeping with both the old tributary system (Ryukyu being a tributary of China first and foremost) and the new trade-driven policies, from the point of which Ryukyu was important as a key part of the semi-legal trade route between Japan and China and Southeast Asia. The Shimazu Clan attempted to reclaim the islands in 1680 and 1683, but was utterly crushed on both occassions, taking huge casualties. The Shogunate, which until then turned the blind eye towards the powerful Clan's blatant violation of anti-trade legislation and effectively independent foreign and domestic policies, now decided that the Shimazu were both unacceptably reckless and seriously weakened. The powerful advisor Sakai Tadakiyo's growing influence over the ailing Shogun Tokugawa Ietsuna was also probably a factor. Either way, the Shogunate's armies soon invaded Kyushu and forcefully abolished the Clan as such, carving up its territories between the supporters of the Shogun. Although weakened, the Shimazu did resist for some while in a few outposts; worse still, the young samurais granted the new lands were not very skilled at managing them, and often had to deal with rebellions as well, so in sum Kyushu was serious damaged economically. As the breadbasket's agriculture was crippled, the Shogunate's economic and social woes, already... woeful, soon begun to detiriorate and the Japanese state neared a crisis, as rebellions grew frequent...
Back in China, the middle class continued to grow in importance, while new manufactories were established in the major cities. Better tools were being invented, and more and more elaborate products were made for export. Technological innovation was increasingly encouraged - mostly but not solely in shipbuilding, ofcourse - and some European methodics were adapted to augment the Chinese ones as well. Economically and technologically Nan Ming China was in a real golden age, and it was quite well in the other regards as well. The only really bad news was the apparent rise of a new Mongol empire (see below), which launched some raids, but they were all beaten back and the Great Wall was further expanded and strenghthened.
In 1685, after claiming some more small islands in the South China Sea, the Hangqing Emperor finally decided to try and do that which all the expansionist Chinese dynasties had tried sooner or later, with varying but ultimately temporary success. Taking advantage of the feudal divisions in Vietnam, the Emperor pledged to restore the Mac Dynasty (since 1592 limited to the tiny northern Cao Bang province, where the dynasty and its supporters survived mostly due to Ming protection), and invaded the north, held by the Trinh Lords who ruled there in the name of the figurehead Le Dynasty Emperor Le Hy Tong (while the Nguyen Lords ruled in his name in the south). The numerically and technologically superior Nan Ming army nonetheless encountered some problems early into its invasion, until a highly succesful amphibious operation gave them Haiphong. Hanoi was taken soon after, and a large Trinh army soon pledged allegience to the Mac Dynasty Emperor. Trinh Can was soon captured and executed, and the former Trinh lands were placed under Chinese military protectorate, with the Mac Dynasty Emperor as a figurehead in the new capital city of Hanoi. Still, the greater part of Vietnam - that south of the Linh River - was in the hands of the Nguyen Lords, a considerably more formidable foe in all regards, sporting powerful fortifications and preparing to defend itself ever since the invasion of the Trinh lands begun. The Chinese pressed on; by 1687, the Linh River was crossed and the Nguyen capital of Hue was captured, but the Chinese took heavy casualties, the resistance was fierce and further advance appeared impossible; the Nguyen forces retreated in good order, taking the Le Emperor with them, and fortified their positions at Da Nang. A huge army was levied and European weapons were acquired from Portuguese and other arms dealers. Thanks to all of these precautions, Lord Nguyen Phuc Tran managed to score a huge victory over the Chinese army in the Bach Ma forestlands, routing it in a huge battle, slaughtering and capturing nearly a fifth of the invaders, as well as numerous artillery pieces. Prince Zhu Yuhang (one of Hongqing's brothers) was sent to take command and avenge the defeat; he managed to fight back an attack on Hue itself, and introduced harsh measures to cripple resistance in the countryside. In the meantime, the Ming fleet went an a campaign of raids and naval skirmishes, gradually eliminating the Vietnamese fleet and looting several major port cities. In 1690, however, it was granted a bigger part, bringing supplies and reinforcements to Zhu Yuhang's army, providing artillery support in the coastal cities and most importantly landing specially-trained units behind the enemy lines on many occassions. It was on that year that Zhu Yuhang started the real offensive; with the help of the amphibious diversion, he managed to defeat the Nguyen army in detail and to besiege and capture Da Nang. The Nguyens kept retreated southwards, raising more and more troops while ordering everyone to resist the invasion and sending some troops and spies to help the rebels harrass the Chinese advance. In response, Zhu Yuhang introduced more and more harsh measures, and, advancing in an even pace, captured province after province, crushing all resistance. This "Pacification March" was to become a classic example of asymmetric total war-style operations on both sides, the Vietnamese using everything they had and the Chinese sparing noone. Ultimately the superior training and organisation of the Chinese, as well as growing tax pressure behind the Nguyen lines and a pretty succesful claim of legitimacy on the behalf of the Mac Dynasty, seemed to have paid off in 1694, when yet another Nguyen army was destroyed at Binh Dinh Qui Nhon; Vietnamese defectors abounded, and the city of Binh Dinh Qui Nhon itself surrendered without a fight. At this point, however, the Hongqing Emperor died, and the campaign came to a halt, both due to usual complications and because of the rumours of a succession war at home.
Yet these rumours proved to be ill-founded, the Zhengtai Emperor took power with the minimal bloodshed, reviewed the state of the war and dashed what few hopes Nguyen Phuc Tran still dared entertain. Zhu Yuhang was ordered to wrap the campaign up; seeing as the southernmost Nguyen-claimed lands were already snatched back by Chettha IV of Cambodia (both by his army and by the Cambodians there), this merely meant securing a few towns and forts, and tracking down Nguyen Phuc Tran. The latter goal soon became obsolete as Nguyen Phuc Tran commited suicide. Le Hy Tong was captured and imprisoned, though his conditions were eased somewhat after he officially abdicated in the favour of the Mac Dynasty. As for resistance, it continued - and continued to be irrelevant. The devastated Nam was trully An'd, at least for now.
The war itself was something of a reckless venture, considering that it actually disrupted Ming trade with Southeast Asia to a certain degree, moreso thanks to later activities of the Nguyen privateers; it naturally also cost much in the terms of time and resources, and to get the funds for Zhu Yuhang's campaigns the Nan Ming government had to increase taxes considerably, provoking some rural unrest at home (not to the point of rebellion, though). Still, the war granted the Nan Ming new trade ports and bases, and considerably increased their presence and influence in Southeast Asia. Also, numerous flaws in the Nan Ming land military, which was comparatively neglected under Hongqing, were exposed and rectified.
Either way, with Ryukyu, Taiwan, Vietnam and several islands in between conquered, the Nan Ming had expanded their empire considerably and approached the European colonial holdings and the key East Asian trade centres more closely than before. Greater trade presence was established in Malacca, Batavia and Nagasaki (which itself was opened to Chinese trade in 1696 after a little naval demonstration, along with some other Japanese ports). Nan Ming China has become a prominent naval, commercial and colonial power by 1700.