明鄭時期
In 1662, Ming loyalist Koxinga and his followers laid siege to the Dutch outpost and eventually established the Kingdom of Tungning. Under the terms of the surrender, Koxinga took over all the Dutch leases. On a constant war footing and denied maritime trade by the hostile Dutch-Qing alliance, the Kingdom of Tungning intensively exploited these lands to feed their vast army. This resulted in a number of brutally suppressed rebellions by the indigenous population and a gradual weakening of Middag.