In 1661, amidst the Qing conquest of China, Ming general Koxinga led a fleet to invade Formosa. The Dutch defense, led by governor Frederick Coyett, held out for nine months. However, after Koxinga defeated Dutch reinforcements from Java, Coyett surrendered Formosa. The Dutch would never rule Formosa again.