The Qing-French War
The awkward Qing-French Condominium predictably began to break down in awkward ways. After the death of Emperor Tu Duc, his adoptive son, Duc Duc was crowned Emperor, but was overthrown in a coup by his regents and executed. In outrage, the French delegation demanded that the Vietnamese regents, Nguyen Van Tuong and Ton That Thuyet install Hiep Hoa, who was known to be friendly to the French. They refused and the French backed down, allowing the regents to place into power the Child-Emperor Ham Nghi, who was supported by the Qing. Several war hawks in France were angry, but the French Emperor Napoleon IV did not feel it was worth going to war in Asia.
This all changed in 1884, when due to an confrontation between a missionary and a local farmer in Cochinchina, the farmer took a punch at the farmer, at which point the missionary pushed the farmer down, who apparently then died due to being in very poor health. An anti-Christian riot exploded, which quickly started spreading as anti-French Vietnamese treated Christian Vietnamese as a stand-in for the French. The French responded in fury, demanding that the Dai Nam imperial government clamp down on the fighters. However, the regents responded by saying that Cochinchina was under French control - the Nguyen Dynasty only controlled Annam and Tonkin. Worst of all, the famous Black Flags, the Sino-Vietnamese guerilla group fighting French influence, had moved from Annam and Tonkin (under Qing-French condominium) into French Cochinchina. They operated on the Annam-Cochinchina border, evading French troops by fleeing into Annam every-time French troops arrived.
Outraged by the persecution of Christians, the war hawks in France won out. The French issued an ultimatum to the Vietnamese royal government, ordering that they either disarm the Black Flags or allow the French Army to waltz into Cochinchina to defeat them. However, the second condition was a violation of the Qing-French Condominium Agreement, which prohibited the entry of Qing or French regular armies in Annam and Tonkin. The French requested that the Qing allow that provision to be temporarily suspended. The Qing Court was in no mood to compromise. After their successful defense of Korean sovereignty against Japanese incursion in 1874, the Qing Court in 1884 was both confident in its military capacity and eager to defend another perceived vassal state.
The French, feeling certain that the Qing would not respond, marched a French army across the border to pursue the Black Flag rebels. In response, nationwide mobs rose up and attacked French merchants and Vietnamese Christians, much to the horror of the French. This time, the French once again demanded the Vietnamese government to put down the rebels, but they refused. In response, the French declared war on the Empire of Dai Nam, a move largely popular in France because it was seen as necessary to protect Vietnamese Christians.
Much to the surprise of the French, the Qing Court, led by the Yuanhua Emperor, declared war on France in response. The Yuanhua Emperor himself was rather convinced that the Vietnamese revolts were a "national awakening" that the Qing Empire was honor-bound to support. The only opponent to the idea was Li Hongzhang, who noted that the Qing Navy had yet to be fully rebuilt. Indeed, his caution was in a sense warranted. What little of the Chinese fleet remaining from the Qing-Japanese War was destroyed in a short battle off the coast of Fujian, even the Dingyuan and Zhenyuan, two advanced battleships that had been built for the Qing Empire by Britain, significantly more advanced than what the French ships actually had. The Qing Army immediately plunged into Annam however, in a series of battles where the French had been heavily harmed by the simultaneous rebellion. After a series of battles, the French armies had been defeated due to the massive numerical disparity and poor positioning in hostile territories. Fleeing to Cochinchina, reinforcements from Mainland France arrived to bolster the defense.
As Qing-Dai Nam forces plunged into Cochinchina, they were aided by both Black Flag bandits and nationalist rebels, who often wreaked horrible atrocities on French and Christian Vietnamese civilians. The Child Emperor of Dai Nam, guided by his rebels, even published an edict forbidden the practice of Christianity. All of this outraged the French public, which rallied behind the war effort. The French Navy quickly set up a blockade all around the Qing Empire, choking its economy. Prime Minister Churchill expressed outrage at this action, castigating France for ruining free commerce in China, but the French were in no mood to listen, especially as they knew the Qing Army had been trained and armed largely by Britain.
In addition, as Cochinchina fell, the last troops from the region were ferried out by French ships and transferred either to Cambodia or to the easiest target they could find - Taiwan. Although the landings were difficult, determined French offensive pushes as well as a constant stream of reinforcements slowly pushed the Qing garrison to the point of collapse. In addition, the Franco-Cambodian forces in Cambodia held up very well, especially because the Qing invasion was seen as an pretext for Vietnamese imperialism over Cambodia, which was almost unanimously loathed by Cambodia's ruling classes. In addition, much of Vietnam's Christian population had fled persecution into Cambodia, where Cambodian ruling elites grudgingly tolerated them (mostly because the French forced them to). Although the war had began terribly for France, they soon began turning the tide, as the Qing-Dai Nam offensive into Cambodia collapsed and Taiwan soon surrendered.
The war ground into a brutal stalemate, putting pressure on the Qing Empire as the economy suffered and isolated incidents of peasant unrest became known to the Qing court. In the Treaty of Tientsin, the two powers agreed to a peace that tried to create a status quo antebellum, but which was impossible. Namely the problem was Cochinchina - the Vietnamese regents indicated that they were willing to rescind the anti-Christian edict, but only if Cochinchina was returned to Dai Nam. The French were outraged. The Qing truly desired peace at this point, but they couldn't be seen to abandon Vietnam. Similarly, the French couldn't give up Cochinchina with nothing in return. However, the Qing's British supporters were also eager for a peace, as their economy, closely tied up in trade with China, was also suffering.
Ultimately, the Treaty of Tientsin transferred Cochinchina to Dai Nam sovereignity and ended the condominium over Dai Nam, making it a sole suzereinty of the Qing Empire again. However, in return, the French were granted a protectorate over Taiwan Prefecture (Taiwan only being a prefecture in Fujian province), which they exchanged for a generous delivery to the Qing Treasury. When the peace was signed, the French had a very bad feeling about this, a feeling confirmed shortly after when they were informed of a diplomatic revolution.
In 1885, the Yuanhua Emperor had convinced the Qing Court that although the Qing could stand up to the European powers under his reforms, they were unable to truly defeat them and thus required a European ally. The British Prime Minister himself, Randolph Churchill, signed an agreement with the Qing envoy, Prince Gong (semi-exiled to London), outlining the Anglo-Manchu Alliance, where the two promised to defend the other from any threats. The British Tory elite reveled in the terms. The Qing Emperor, who once demanded British agents to kowtow, officially addressed himself as the Emperor of Asia, a co-equal to the Empress of India, Victoria I. This was seen a huge coup for British monarchists. In addition, the merchant class was pleased. Under the cover of the treaty, the Qing Empire quietly abrogated its unequal treaties with France and Sweden-Norway (much to French outrage), leaving the treaties only open with the United Kingdom and the United States (the British didn't want to provoke the Americans). The dominance of Anglo-American merchants in China only rose as a result. Prime Minister Churchill was jubilant, seeing this as a diplomatic triumph only a few years after the humiliation at Egypt.
In contrast, the French felt humiliated. The French public quickly blamed all of the atrocities in the Qing-French War squarely on the British, many civilian politicians even suggesting that the entire war was just a British conspiracy to exterminate Roman Catholicism, much like Gladstone's intervention in promoting the Roman Union. The Qing-French War was technically a tie, but the French felt like losers.
Widespread Anglophilia among the Qing Court eventually made it possible for the Yuanhua Emperor to ram through a written Constitution for the Qing Empire, clearly passed onto the Emperor by British diplomats, because it was remarkably similar to the Constitution of Tonga that had been drafted with British assistance.
The Qing Emperor claimed the truly odd title "Emperor of Asia" as a result of King Kalakaua of Hawaii's world tour, which he made seeking to attract immigrants to work the sugar plantations of Hawaii. The Qing Emperor gladly obliged, telling Kalakaua that he was more or less willing to take whoever he wanted. Taiwan was also a sugar-growing region and once it fell to the French, the Qing encouraged the vast majority of the skilled population to move to Hawaii instead of living under French rule (to deny the French of useful talent). The Qing, hoping to establish international legitimacy, surprisingly thought the Hawaiians were more or less a Western nation due to its American influence, and when Kalakaua offered to marry his daughter Kaʻiulani to the heir of the Qing Empire, the Yuanhua Emperor accepted. This was despite the fact that he had no actual heir yet. Kalakaua, also surprised and excited, asked that the Qing form a Union of Asian Nations. The Qing Emperors, unlike say, the Japanese or Koreans, always loved tacking extra titles onto their list, so they accepted. When the Qing Court had heard of this, many of them fell into apoplectics, though few criticized the match because no one could criticize the Manchu Emperors for marrying a foreigner without egregiously pointing out their Manchu heritage in a very awkward and politically incorrect way. Not to mention it wasn't really exactly clear what the Union of Asian Nations was or if it held any actual legal force (it really didn't). In addition, it was barely a marital promise because the Qing Empire did not follow primogeniture - assuming he had multiple sons, the next Emperor was always secretly selected by the current Emperor among all of his eligible sons, a selection which would be revealed upon his death. The Yuanhua Emperor's oldest son Yunze was actually born in 1885 (the Manchu age of majority was 16) and to everyone's surprise, the Emperor kept his promise by betrothing the newborn baby to the nine and a half year old Kaʻiulani (the Manchus were relatively lenient with age gaps, only really viewing it as a problem if it hit double digits).
--