During the early Qing Dynasty, pirates gathered here and the residents left temporarily. In contrast with Taiwan and Penghu, the Matsu Islands were not ceded to the Japanese Empire via the Treaty of Shimonoseki in 1895. Neither were they occupied by Japanese troops during World War II because they were not important militarily. Due to its strategic location for the only route for spice road, the British established the Dongyong Lighthouse in Dongyin Island in 1912 to facilitate ships navigation.