In the mid-17th century, China took control of Taiwan, and closed Tanshui to international trade. Later, as a result of the Sino-French war of 1884, Tanshui was again opened up to Western access.
清朝手中的淡水，也因一八八四年中法戰爭一役的勝利而揚眉吐氣。