Keelung Campaign

The Keelung Campaign (August 1884–April 1885) was a controversial military campaign undertaken by the French in northern Formosa (Taiwan) during the Sino-French War. After making a botched attack on Keelung in August 1884, the French landed an expeditionary corps of 2,000 men and captured the port in October 1884. Unable to advance beyond their bridgehead, they were invested inside Keelung by superior Chinese forces under the command of the imperial commissioner Liu Ming-ch'uan. In November and December 1884 cholera and typhoid drained the strength of the French expeditionary corps, while reinforcements for the Chinese army flowed into Formosa via the Pescadores Islands, raising its strength to 35,000 men by the end of the war. Reinforced in January 1885 to a strength of 4,500 men, the French won two impressive tactical victories against the besieging Chinese in late January and early March 1885, but were not strong enough to exploit these victories. The Keelung campaign ended in April 1885 in a strategic and tactical stalemate. The campaign was criticised at the time by Admiral Amédée Courbet, the commander of the French Far East Squadron, as strategically irrelevant and a wasteful diversion of the French navy.

Background
Following the defeat of China's Kwangsi Army by the Tonkin Expeditionary Corps in the Bac Ninh campaign (March 1884), a two-year confrontation between France and China in northern Vietnam was ended on 11 May 1884 by the conclusion of the Tientsin Accord, under which the Chinese undertook to withdraw their troops from Vietnam and to recognise a French protectorate in Tonkin. However, the hopes aroused by this agreement, which seemed to have brought France's Tonkin campaign to a victorious end, were shattered on 23 June 1884 by the Bac Le ambush, in which a French column advancing to occupy Lang Son and other frontier towns was attacked near Bac Le by a detachment of the Kwangsi Army.

When news of the 'Bac Le Ambush' reached Paris, there was fury at what was perceived as blatant Chinese treachery. Jules Ferry's government demanded an apology, an indemnity, and the immediate implementation of the terms of the Tientsin Accord. The Chinese government agreed to negotiate, but refused to apologise or pay an indemnity. The mood in France was against compromise, and although negotiations continued throughout July, Admiral Amédée Courbet, the commander of France's newly created Far East Squadron, was ordered to take his ships to Foochow. He was instructed to prepare to attack the Chinese fleet in the harbour and to destroy the Foochow Navy Yard. Meanwhile, as a demonstration of what would follow if the Chinese remained recalcitrant, Courbet was ordered on 2 August to despatch a naval force to the port of Keelung (基隆) in northern Formosa, destroy its coastal defences, and occupy the town as a 'pledge' (gage) to be bargained against a Chinese withdrawal from Tonkin.

Failed French landing at Keelung, August 1884
French interest in Keelung dated from February 1884, when Admiral Sébastien Lespès, the commander of France's Far East naval division, had recommended its occupation in the event of a war between France and China on the grounds that it could be easily seized and easily held. When this recommendation was made, Keelung was poorly defended. As tension between France and China grew in July 1884 the garrison of Keelung was substantially increased and the town's defences improved, and in August 1884 it was no longer the easy target it had been six months earlier. Its inner harbour was defended by three shore batteries: the recently completed Ta-sha-wan Battery (大沙灣砲台), boasted by the Chinese to be impregnable; the Ehr-sha-wan battery (二沙灣砲台) on the eastern side of the harbour; and a third battery on the seaward slope of Mount Clement (Huo-hao-shan, 火號山), a prominent hill to the west of the town. By the end of July 1884 there were 5,000 Chinese soldiers stationed in northern Formosa, deployed around the ports of Keelung and Tamsui. The appointment of Liu Ming-ch'uan (劉銘傳) as imperial commissioner for Formosa in July 1884 also underscored the determination of the Ch'ing government to defend Formosa. Liu was a veteran military commander, who had distinguished himself in the Taiping Rebellion.

Liu Ming-ch'uan was aware that Keelung and the nearby port of Tamsui (淡水) were likely targets for a French attack, and made sensible defensive dispositions to oppose a landing at both towns. He stationed 2,500 Chinese troops around Keelung, the likeliest target, under the command of the generals Sun K'ai-hua (孫開華) and Su Te-sheng (蘇得勝), while he himself remained with the other half of his army at Tai-pak-fu (台北府, modern Taipei, 台北), occupying a central position that would allow him to move quickly either to Tamsui or to Keelung once the French threat developed.

Admiral Courbet, then aboard the French cruiser Volta in the Min River, received the French government's order to attack Keelung on the evening of 2 August. He entrusted this mission to Admiral Lespès, his second-in-command, who left the Min River the following morning aboard the gunboat Lutin to meet the ironclads Bayard and La Galissonnière off the island of Matsu. At Matsu Lespès transferred Bayard's landing company to his flagship La Galissonnière, and on the night of 3 August crossed the Formosa Strait with La Galissonnière and Lutin. The two French ships arrived off Keelung on the morning of 4 August, where the cruiser Villars was already waiting for them.

On the morning of 5 August, after the Chinese rejected a French ultimatum to hand over their coastal defences, La Galissonnière, Villars and Lutin engaged and disabled Keelung's three coastal batteries. Admiral Lespès put a landing force ashore in the afternoon to occupy Keelung and the nearby coal mines at Pei-tao (Pa-tou, 八斗), but the arrival of a large body of Chinese troops led by Liu Ming-ch'uan  forced the French to make a fighting withdrawal and re-embark on 6 August. French casualties in this unsuccessful operation were 2 dead and 11 wounded. The Chinese suffered markedly heavier casualties.

French strategic debate, September 1884
In the wake of the Battle of Foochow (23 August 1884), which inaugurated the nine-month Sino-French War, the French decided to make a second attempt to put pressure on China by seizing Keelung. Admiral Courbet argued vigorously against a campaign in Formosa and submitted alternative proposals for a campaign in northern Chinese waters to seize either Port Arthur or Weihaiwei. He was supported by Jules Patenôtre, the French minister to China.

Courbet's proposals, although militarily attractive, were too ambitious for the French government to stomach. The French premier Jules Ferry fought the Sino-French War in the teeth of parliamentary disapproval, and was unable to give Courbet the resources necessary for a major campaign on the Chinese mainland. A limited operation to seize Keelung, on the other hand, could be undertaken with the forces already at Courbet's disposal. The town could be taken and held by a relatively small French force, and with its nearby coal mines would make an admirable wartime base for the Far East Squadron. A victory at Keelung would also avenge the failure of 6 August. The decision to attack Keelung was made by the French cabinet on 18 September 1884. For good measure, the cabinet also sanctioned an attack on nearby Tamsui, provided that the town could be captured without damage to European commercial interests.

French capture of Keelung, 1 October 1884
On 1 October 1884 Lieutenant-Colonel Bertaux-Levillain landed at Keelung with a small expeditionary corps (2,250 men) drawn from the French garrisons in Tonkin and Cochinchina. The Formosa Expeditionary Corps (French: corps expéditionnaire de Formose) consisted of three four-company battalions of marine infantry (chefs de bataillon Ber, Lacroix and Lange), a marine artillery battery, and a scratch battery of two 80-millimetre mountain guns and 4 Hotchkiss canons-revolvers. A small force of Vietnamese porters accompanied the combatants.

The men of the expeditionary corps sailed from Saigon and Along Bay in the third week of September aboard the state transports Nive, Tarn and Drac and joined the Far East Squadron off the island of Matsu on 29 September. The three troopships were escorted on the final leg of their journey by the ironclad Bayard. On the morning of 30 September the invasion force arrived off Keelung. Courbet scouted the Chinese defences during the afternoon, and gave orders for an opposed landing on the following morning.

At dawn on 1 October Ber's marine infantry battalion was put ashore to the west of Keelung, at the foot of Mount Clement. Supported by naval gunfire from several ships of Courbet's Far East Squadron, the French scaled Mount Clement and established a defensive position on its summit, flanking the Chinese out of their positions to the south of Keelung and threatening their line of retreat to Tamsui. French casualties in the battle for Mount Clement were negligible: 4 killed and 12 wounded. Chinese casualties, according to Formosan informants, were around 100 killed and 200 to 300 wounded. In the first week of October the French occupied several hills in the immediate vicinity of Keelung and began to fortify them. However, the expeditionary corps was too small to advance beyond Keelung, and the Pei-tao coal mines remained in Chinese hands.

Liu Ming-ch'uan had commanded the unsuccessful defence of Keelung in person, with a Chinese division of 2,000 troops. Anticipating that the French would follow up their success with a landing at Tamsui, he left half of his force in strong defensive positions around Lok-tao (Liu-tu, 六堵), astride the road to Tamsui, and retreated to Tai-pak-fu with the rest on 3 October. It was rumoured that he intended to flee south to Tek-cham (竹塹, modern Hsinchu, 新竹), and his arrival in Tai-pak-fu was greeted with rioting. Several of his bodyguards were killed and he himself was arrested and held for several days in the city's Lungshan temple.

French defeat at Tamsui, 8 October 1884
Meanwhile, after an ineffective naval bombardment on 2 October, Admiral Lespès attacked the Chinese defences at Tamsui with 600 sailors from the French squadron’s landing companies on 8 October. Tamsui had a large foreign population at this period, and many of the town's European residents formed picnic parties and flocked to vantage points on the nearby hills to watch the unfolding battle.

The French attack soon began to falter. The French fusiliers-marins were not trained to fight as line infantry, and were attacking over broken ground. Capitaine de frégate Boulineau of Château-Renaud, who had replaced the officer originally scheduled to command the attack at the last moment, lost control of his men in the thick undergrowth in front of the Chinese forts. The French line gradually lost its cohesion and ammunition began to run short. The Chinese forces at Tamsui, numbering around 1,000 men, were under the command of the generals Sun K'ai-hua and Chang Kao-yuan (章高元). Seeing the French in confusion, Sun K'ai-hua advanced with his own forces and outflanked the French on both wings. The French hastily withdrew to the shore and re-embarked under cover of the squadron's guns. French casualties at Tamsui were 17 dead and 49 wounded. Chinese casualties, according to European employees of the Tamsui customs, were 80 dead and around 200 wounded.

The repulse at Tamsui was one of the rare French defeats in the Sino-French War, and had immediate political significance. China's war party had been placed on the defensive after the loss of China's Fukien fleet in the Battle of Foochow on 23 August 1884, but the unexpected Chinese victory at Tamsui six weeks later bolstered the position of the hardliners in the Ch'ing court. The court thereupon decided to continue the war against France until the French withdrew their demand for the payment of an indemnity for the Bac Le ambush, rejecting an American offer of mediation made shortly after the battle. This decision ensured that the Sino-French War would continue for several more months, with increasing losses and expenditure on both sides.

Actions around Keelung, November and December 1884
As a result of the defeat at Tamsui, French control over Formosa was limited merely to the town of Keelung and to a number of positions on the surrounding hills. This achievement fell far short of what had been hoped for, but without reinforcements the French could go no further. They therefore did their best to fortify the precarious bridgehead at Keelung. Several forts were built to cover the various approaches to the town. Fort Clement, Fort Central and Fort Thirion faced west towards the Chinese positions at Lok-tao. Fort Tamsui and Eagle's Nest (Nid d'aigle) covered the approach to Keelung from the southwest along the main road from Tamsui. Cramoisy Pagoda, a large Chinese house converted into a fort and manned by Captain Cramoisy's marine infantry company, covered the southern approach to Keelung. Fort Ber, Fort Gardiol and Fort Bayard, a chain of forts collectively known as the 'Ber Lines', crowned the low range of hills that screened Keelung's eastern suburb of Sao-wan. The three Chinese forts disabled by the French in August were repaired and named respectively Fort Lutin, Fort Villars and Fort La Galissonnière, after the three ships that had engaged them.

On 2 November 1884 the Chinese general Ts’ao Chih-chung (曹志忠) attacked the French outposts of Fort Tamsui and Eagle's Nest to the southwest of Keelung with a force of 2,000 men. The attackers made a night march from Tsui-tng-ka (水返腳, now Hsichih, 汐止), hoping to take the French by surprise with a dawn attack, but failed to reach their positions in time. The Chinese attack was made in daylight and was easily repelled by the French, who mowed down the attackers with Hotchkiss and rifle fire. The Chinese admitted to a loss of 200 men in the attack, but the true figure was probably somewhat higher. One French soldier was lightly wounded. On 3 November a force of Chinese marauders approached Keelung from the south and tried to rush Cramoisy Pagoda, but were repelled without difficulty by its defenders. The attack was probably made by the Chinese in the hope that the French had lowered their guard after the failure of the previous day's assault.

Following the failure of these attacks Liu Ming-ch'uan began to invest Keelung. He ordered the town's inhabitants to leave their homes, thereby denying the French their services as cooks, laundrymen and labourers, and he fortified a number of hill positions to the south and southeast of Keelung. The Chinese built major forts on the summits of Shih-ch'iu-ling (獅球嶺), Hung-tan-shan (紅淡山) and Yueh-mei-shan (月眉山), linking them with an elaborate trench system. These forts were christened respectively by the French La Dent ('the fang'), Fort Bamboo and La Table. From its distinctive shape, Hung-tan-shan became Le Cirque ('the corry'). On 13 and 14 November the French destroyed the Chinese defences on the summit of Hung-tan-shan and burned the village of Nai-nin-ka (南寧腳) to the southeast of Shih-ch'iu-ling, which the Chinese were using as a supply depot. On 12 December the French captured and partly demolished the Shih-ch'iu-ling fort (La Dent), but were forced to withdraw by a Chinese counterattack. On each occasion the Chinese quickly made good the damage.

Although French losses in these engagements with Liu Ming-ch'uan's army were negligible, the Formosa expeditionary corps suffered heavy casualties from disease. An outbreak of cholera and typhus in November 1884 killed 83 French soldiers by 23 December and incapacitated hundreds more. On 1 December 1884 only 1,100 French soldiers were fit were action, half the number who had landed at Keelung two months earlier. French officers with long memories compared the occupation of Keelung with the siege of Tourane twenty-five years earlier, where an initial victory had been succeeded by a costly and protracted stalemate and, ultimately, an ignominious evacuation by the invaders.

French offensive, 25–31 January 1885
Towards the end of 1884 the French were able to enforce a limited blockade of the northern Formosan port of Tamsui and the southern ports of Tai-wan-fu (台灣府, modern Tainan, 台南) and Takow (打狗, modern Kaohsiung, 高雄). The blockade was relatively ineffective, and was unable to prevent the Chinese from using the Pescadores Islands as a staging post for landing large numbers of troops in southern Formosa. Substantial drafts from the Hunan and Anhui Armies raised the strength of Liu Ming-ch'uan's defending army to around 25,000 men by the end of the year, and to around 35,000 men in April 1885.

The Chinese forces around Keelung consisted for the most part of regular soldiers from Fukien and from the northern provinces around the Gulf of Petchili. The French considered them to be the cream of the Chinese army. The men were tall and sturdy, and wore a practical dark blue cloth uniform consisting of baggy trousers reaching to mid-calf and a loose shirt decorated with a large scarlet badge inscribed with characters in black indicating their battalion and company. Leggings and felt-soled slippers completed their normal dress, and they were also issued with a light rain cape either of wool or waterproofed with fish paste. Their equipment included German-made belts, scabbards and ammunition pouches (the latter much admired by the French, who replaced their own 1882 pattern pouches whenever they could). Unlike the French, they did not carry haversacks. Most of them were armed with Lee rifles, though Mausers, Winchesters and Remingtons were also popular and the bodyguards of the senior mandarins were armed, as befitted their prestige, with the latest Hotchkiss carbines. They were abundantly supplied with ammunition.

Liu Ming-ch'uan also raised a corps of local Hakka militia under the command of Lin Ch'ao-tung (林朝棟), and at one point even recruited a band of head-hunting aborigines from the untamed central mountain region of Formosa. These illiterate tribesmen had long been accustomed to raid the peaceful Chinese villages of the plain, and Liu Ming-ch'uan seized the opportunity to divert their warlike energies against the French. In the event, the tribesmen were of little military value to the Chinese. They were armed only with matchlock rifles loaded with stone bullets. Captain Paul Thirion, whose marine infantry company met them in battle during a skirmish on 20 November 1884, commented unkindly that a gang of small boys throwing stones would have put up a better fight.

In early January 1885 the Formosa expeditionary corps was substantially reinforced with two battalions of infantry, bringing its total strength to around 4,000 men. Four of the six companies of the 3rd African Light Infantry Battalion (chef de bataillon Fontebride) arrived in Keelung on 6 January, and all four companies of the 4th Foreign Legion Battalion (chef de bataillon Vitalis) disembarked on 20 January. Command of the expanded expeditionary corps was given to Lieutenant-Colonel Jacques Duchesne (1837–1918), the future French general and conqueror of Madagascar, who had recently made his name in Tonkin by defeating Liu Yung-fu's Black Flag Army in the Battle of Yu Oc (19 November 1884) and fighting his way through to the isolated French post of Tuyen Quang.

The African Battalion reinforcements soon blooded themselves, but not in accordance with Duchesne's plans. On 10 January 1885 a party of 15 bored zéphyrs under the command of Corporal Mourier escaped from their barracks and launched an impromptu attack on Le Cirque. Their aim, apparently, was to capture the Chinese flag floating above the ramparts of Fort Bamboo and bring it back to Keelung. Mourier and his men soon came under fire, and Fontebride was forced to commit all four companies of the battalion one after another to disengage them. By mid-afternoon the entire African Battalion was deployed in line, in the open, halfway up the slopes of Hung-tan-shan, exchanging fire with the Chinese defenders of Fort Bamboo. Courbet and Duchesne, furious at this reckless, unauthorised attack, ordered Fontebride to extricate the battalion immediately. French casualties in this 'reconnaissance' (as Courbet prudently called it in his official report) were 17 dead and 28 wounded. Chinese casualties were almost certainly higher, as their positions were shelled by the French artillery during the engagement. The survivors of Mourier's party (several of them were killed during the attack) were jailed for 60 days.

Two weeks later the French attacked the Chinese lines in a more orderly manner. On 25 January 1885 Duchesne launched an offensive aimed at capturing the key Chinese position of La Table (Yueh-mei-shan). In three days of fighting the French captured the subsidiary position of Fork Y, enabling their artillery to enfilade the main Chinese defences, but on 28 January torrential rain halted the offensive before the French could assault La Table itself. A Chinese counterattack on Fork Y during the night of 31 January was decisively repulsed by the French with rifle fire at point-blank range. French casualties in the actions of 25 to 31 January were 21 dead and 62 wounded, mostly in the Legion and African battalions. Chinese casualties, mostly sustained in the disastrous counterattack on 31 January, probably amounted to at least 2,000 men. The dead included the battalion commander Chang Jen-kuei (張仁貴), a bandit chief from Ilan who had contributed a force of 200 militiamen to Ts’ao Chih-chung's command.

Duchesne was anxious to follow up this limited victory with a further attack on La Table, but heavy rain continued throughout February. No serious troop movements were possible during this period. In mid-February the Chinese bombarded the French positions from La Table with Congreve rockets, but without doing any damage. French artillery fired back, and a lucky shot blew up an ammunition dump on La Table. Thereafter the Chinese left the French in peace.

Duchesne decided to occupy Fork Y, as its possession allowed the French to enfilade long stretches of the Chinese trench lines linking their forts on Yueh-mei-shan and Hung-tan-shan, and Legion and zéphyr garrisons took turn and turn about to hold this position during the chills and rains of February. The French troops soon renamed Fork Y Fort Misery: Our stay at Fort Misery was dreadful. The rain never let up. It pricked our faces like icicles, put out fires we had spent hours lighting, turned our campsite into a bog and washed out the dye from our clothes. The men slept on beds of liquid mud. Their uniforms, filthy and faded, were a disgraceful sight. As for the Annamese coolies, shivering with cold and fever, we could hardly bear to look at them. Most of them were now clad in French hand-me-downs, which they had either filched from the field hospital or been given by kind-hearted soldiers. The unlucky ones, still clad only in a scanty loincloth, wrapped themselves in sheets or blankets to stay as warm as they could.

French offensive, 4–7 March 1885
The rain finally stopped on 2 March, and two days later Duchesne launched a second, highly successful offensive. In a series of actions fought between 4 and 7 March, the French broke the Chinese encirclement of Keelung with a flank attack delivered against the east of the Chinese line, defeating Chinese forces under the command of Ts'ao Chih-chung, Wang Shih-cheng (王詩正) and Lin Ch'ao-tung (林朝棟), capturing the key positions of La Table and Fort Bamboo, and forcing the Chinese to withdraw behind the Keelung River.

Duchesne committed 1,300 troops to his attack column. The column contained six companies of the 4th Legion and 3rd African battalions and three companies of marine infantry. Artillery support was provided by three guns under the command of Captain de Champglen and by the gunboat Vipère, which took up a position off Pei-tao from which it could bombard the Chinese positions on Yueh-mei-shan and in the Keelung River valley.

On 4 March the French made a bold outflanking march eastwards towards Pei-tao (八堵), occupying the summits of Wu-k'eng-shan (五坑山) and Shen-ou-shan (深澳山).

At dawn on 5 March they descended into the Shen-ou-k'eng (深澳坑) valley and marched southwards to place themselves dead on the flank of the Chinese line. In the early afternoon they scaled Liu-k'eng-shan (六坑山) from the east and laboriously ascended the eastern face of Yueh-mei-shan (月眉山), approaching the Chinese positions without being spotted. Late in the afternoon they captured La Table with a simultaneous frontal and flanking attack, supported by rifle and artillery fire from the French forward positions on Fork Y. The French guns on Fork Y, firing over open sights at a right angle to the axis of the attack, pounded the Chinese positions as the French infantry closed in on La Table, lifting their fire only seconds before the attackers reached the Chinese defences.

On 6 March the attack column, reinforced by two Legion companies previously stationed on Fork Y, paused to resupply with food and ammunition.

On the morning of 7 March the French thrust westwards from Yueh-mei-shan and fought their way to the summit of Hung-tan-shan, where they stormed Fort Bamboo. The attackers were aided by a diversionary attack mounted by Cramoisy's marine infantry company from the Keelung garrison, which had stealthily occupied a hill position to the west of Fort Bamboo during the previous night. Cramoisy's marsouins disclosed themselves as Fontebride's zéphyrs approached Fort Bamboo from the east, disorganising the Chinese defenders with a devastating volley from behind their positions. The hoisting of the French tricolour above Fort Bamboo was greeted by the ships of the Far East squadron lying in Keelung harbour with blasts on their foghorns, and by cheers from the French troops echeloned back along the line of advance on the summits of Yueh-mei-shan and Liu-k'eng-shan.

In the afternoon of 7 March a mixed column of legionnaires, zéphyrs and marine infantry attacked southwards along the ridge of Niao-tsui-chien (鳥嘴尖), against determined enemy resistance. The struggle for Niao-tsui-chien saw the fiercest fighting of the four-day campaign. The Chinese held the peaks, and rolled rocks down on the advancing French. One Chinese infantry unit, concealed in a wood, opened fire on the French at almost point-blank range and inflicted heavy casualties on the 3rd African Battalion. The French eventually pushed the Chinese off the ridges, and just before sunset drove them back through the village of Loan-loan (Nuan-nuan, 暖暖).

Some French troops attempted to cross the Keelung River in abandoned Chinese sampans, but they were promptly recalled by Duchesne, who had no wish to fight a confusing night action south of the river. At nightfall Duchesne halted the pursuit and regrouped his troops on the northern bank of the Keelung River.

On 8 March the French consolidated their positions around Loan-loan. On 9 March the Chinese withdrew from Shih-ch'iu-ling, which could no longer be held with Hung-tan-shan in French hands, and fell back behind the Keelung River.

French casualties in the March offensive were 41 killed and 157 wounded. Chinese losses may have amounted to around 1,500 killed and wounded. The French also captured a battery of modern German Krupp cannon that had been brought into Formosa by the British blockade-runner Waverley and had just been emplaced on La Table. These guns had fired a few rounds during the battle, but the Chinese had been unable to fuse the shells properly and they had failed to explode on impact. Had the French attack been delayed for a few more days, the Chinese might have been able to shell the French out of their forts around Keelung and force them to withdraw behind the hills of the Ber Lines. Duchesne's offensive had been launched in the very nick of time.

The capture of La Table and Fort Bamboo, although it had been bought at a heavy cost, was a remarkable victory for the French. Duchesne's men had been asked to make an arduous approach march of more than 100 kilometres through unfamiliar countryside and then to fight two major battles in the confusing, heavily wooded, mountainous terrain to the south of Keelung. This spectacular feat of arms, perhaps the most impressive French professional triumph of the Sino-French War, was overshadowed at the time by the news of the relief of the Siege of Tuyen Quang on 3 March 1885, and remains largely unknown to this day in France.

Pescadores campaign, 25–29 March 1885
Duchesne's victory enabled Admiral Courbet to detach a marine infantry battalion from the Keelung garrison to capture the Pescadores Islands in late March. Strategically, the Pescadores Campaign was an important victory, which would have prevented the Chinese from further reinforcing their army in Formosa, but it came too late to affect the outcome of the war.

Final skirmishes around Keelung, March–April 1885
Despite his defeat Liu Ming-ch'uan remained as resilient as ever. In mid-March he began to fortify a new Chinese defensive line south of the Keelung River and along the Lok-tao (Liu-tu, 六堵) and Chit-tao (Ch'i-tu, 七堵) heights to the west of Keelung, covering the approaches to Tai-pak-fu (台北府) and Tamsui. The news of Duchesne's victory sparked a brief panic in Tai-pak-fu, and militia units were hastily raised to defend the town against a possible French attack.

But the French were not strong enough to advance beyond their bridgehead at Keelung, particularly after the detachments made from the Keelung garrison for the Pescadores Campaign. They contented themselves with occupying Hung-tan-shan and Yueh-mei-shan, replacing Fort Bamboo and La Table with two identically named forts of their own. Two more forts, Fort Bertin and Southern Fort (Fort du Sud), were built above Loan-loan and on the lower slopes of Hung-tan-shan, overlooking the Keelung River.

The Keelung Campaign now reached a point of equilibrium. The French were holding a virtually impregnable defensive perimeter around Keelung but could not exploit their success, while Liu Ming-ch'uan's army remained in presence just beyond their advanced positions. The Chinese attempted to disrupt work on the construction of Fort Bertin, uncomfortably close to their forward positions, and there were one or two minor skirmishes around the new fort in late March in which several French soldiers were wounded. However, neither the French nor the Chinese undertook any major operations. During the first fortnight of April the French and Chinese outposts occasionally exchanged shots, but no casualties were suffered by either side.

At the end of March 1885 French reverses in Tonkin overshadowed Duchesne's achievement at Keelung. The shocking news of Lieutenant-Colonel Paul-Gustave Herbinger’s retreat from Lang Son on 28 March reached Courbet at Makung on 4 April 1885, in the form of a navy ministry despatch brought from Hong Kong by the cruiser Roland. Courbet was ordered to evacuate Keelung and return to Tonkin with the bulk of the Formosa expeditionary corps, leaving only a small French garrison at Makung in the Pescadores. In the second week of April Courbet and Duchesne drew up a plan for an opposed evacuation of Keelung, involving a carefully phased daylight withdrawal from the frontline forts to the harbour. A small rearguard would be left to hold the approaches to the harbour while the evacuation proceeded, supported by the guns of the Far East squadron. In the event this plan was never implemented, as preliminaries of peace between France and China were concluded on 4 April 1885, bringing the Sino-French War to an end. On 10 April Courbet was ordered to suspend plans for an immediate evacuation of Keelung, and on 14 April he was notified of the conclusion of preliminaries of peace ten days earlier. Hostilities around Keelung now came to an end.

Japanese interest in the Keelung campaign
The French endeavours at Keelung were of great interest to another predatory power in the region, the Empire of Japan. In 1874 the Japanese had sent a punitive expedition to southern Taiwan, following the murder of shipwrecked Japanese sailors by Taiwanese aborigines, and Japanese expansionists already had their eye on Taiwan as a future Japanese colony. Following the failure of the Gapsin Coup in Korea in December 1884, Japan began to look ahead to an eventual showdown with China. Although France and Japan never became formal allies during the Sino-French War (despite Chinese fears of such a possibility), Japan's naval and military leaders observed the performance of Admiral Courbet's squadron and Colonel Duchesne's Formosa expeditionary corps with keen professional interest. The Japanese captain Tōgō Heihachirō, the future commander-in-chief of the Imperial Japanese Navy, visited Keelung during the war aboard the corvette Amagi and was briefed by French officers on the tactics the French were using against the Chinese. Togo's guide was the young French engineering captain Joseph Joffre, who had been sent to Keelung to lay out the new French forts after Duchesne's March victory. Commander-in-chief of the French Army at the start of the First World War and victor of the crucial Battle of the Marne in 1914, Joffre would end his military career as a Marshal of France.

French evacuation of Keelung, June 1885
The Formosa expeditionary corps continued to occupy Keelung and Makung for several months after the end of the Sino-French War as a surety for the withdrawal of Chinese forces from Tonkin. During this period a battalion of marine infantry and a newly arrived marine artillery battery were withdrawn from the Keelung garrison to take part in a French punitive campaign in Madagascar.

Keelung was finally evacuated on 22 June 1885. Under arrangements agreed between Liu Ming-ch'uan and Admiral Lespès on 17 June, the French withdrew from their forts on Hung-tan-shan and Yueh-mei-shan in stages, over a three-day period, and their positions were reoccupied by the Chinese only after a prudent delay. The Chinese officers kept their men well in hand, and the occupation of the French forts was conducted with dignity and restraint. 'There was not the slightest demonstration of triumph, nothing that could hurt our feelings, nothing that could wound our legitimate pride,' wrote one French officer. The French flag that had flown above Keelung for eight months was lowered to a 21-gun salute from the ironclad La Galissonnière. Colonel Duchesne, the commander of the Formosa expeditionary corps, was the last French soldier to embark aboard the waiting transports. The men of the Formosa expeditionary corps were ferried either to Makung in the Pescadores, which would remain in French hands for another month, or to Along Bay in Tonkin, to rejoin the Tonkin expeditionary corps.

By June 1885 Keelung was virtually unrecognisable as a Chinese town. Although its temples had been respected by the occupiers, many of its houses had been demolished to provide fields of fire for the French garrison, and the remaining buildings had been whitewashed and decorated in the French mode. The French had also built a network of broad avenues and boulevards through the town, and turned the waterfront into an esplanade, complete with bandstand. The Canadian missionary George MacKay mentioned that Keelung was reoccupied by its former inhabitants as soon as the French warships steamed out of the harbour, but he did not comment on their reaction to the transformation that had taken place in their absence. Before long, however, Keelung was once again its former self.

The French cemetery in Keelung
Only one trace remains today of the French occupation. At the request of Admiral Lespès, Liu Ming-ch'uan undertook to respect the cemetery in which the French war dead had been buried. This promise was kept, and the French cemetery in Keelung can still be seen today. The French dead, between 600 and 700 soldiers and sailors (most of them victims of cholera and typhoid rather than battle casualties), were originally buried in a cemetery further to the north, close to the Erh-sha-wan battery, and their remains were transferred to the present cemetery in 1909. The French cemetery contains only two named graves, those of sous-commissaire Marie-Joseph-Louis Dert and Lieutenant Louis Jehenne. Ironically, these two marine infantry officers died not in Keelung but in Makung in the Pescadores Islands, in June 1885, and their remains were exhumed and transferred to the Keelung cemetery in 1954.