In 1626, the Spanish Empire landed on and occupied northern Taiwan as a trading base, first at Keelung and in 1628 building Fort San Domingo at Tamsui. This colony lasted 16 years until 1642, when the last Spanish fortress fell to Dutch forces. The Dutch then marched south, subduing hundreds of villages in the western plains between their new possessions in the north and their base at Tayouan.