The Shawan Historical and Cultural Park was once a major battleground during the Sino-French War. In August 1884, as the war broke out, the coal mines in Keelung became a strategic focus for the French forces. The French fleet launched a fierce attack on Keelung, attempting to seize the Qing artillery positions, which led to a temporary collapse of the defensive line. However, Taiwan Governor Liu Mingchuan quickly organized his troops and took advantage of Keelung’s complex terrain to successfully repel the French, ultimately forcing them to retreat and safeguarding Keelung.

The spark that ignited the conflict can be traced back to April of the same year. A French warship quietly entered Keelung Harbor, and three French soldiers disembarked to survey the port, even attempting to approach the Qing artillery positions—only to be driven off by Qing forces. In response, the French lodged a protest with the local magistrate in Keelung, accusing the authorities of refusing to sell food and coal, and even threatening to bombard the area if resources were not provided. This incident eventually escalated into the Sino-French War.