Taiwan was blockaded by the French in 1884 at the start of the SinoFrench War, and Keelung became a major battlefield.
五堵、六堵、七堵、八堵，則是漢族移名屯墾時，曾設垣（堵）阻止土著侵犯，五、六、七、八…… 的數字是拓墾成村的順序，宜蘭的頂堵、二堵、三堵和坪林的四堵也因此得名，這些為區別墾拓次序的地名，代代相傳，竟延用至今。