Ming loyalists led by Koxinga invaded Taiwan and expelled Dutch colonialists from the island during the Siege of Fort Zeelandia and founded the Chinese Kingdom of Tungning. The Ming loyalists quickly moved to replace the institutions and culture of Dutch colonial rule with Han Chinese colonial rule. Language and religious institutions left by the Dutch were closed and replaced with Confucian temples and Chinese language schools for both Han Chinese and aboriginals. Officials encouraged new immigration of Han Chinese from China into territory further inland, turning aboriginal lands into new farmland. After fighting between the Ming loyalists and the Qing during the Revolt of the Three Feudatories, the Qing attacked the Kingdom of Tungning. the Qing won the Battle of Penghu and the Ming loyalists submitted to Qing rule. Tungning was annexed as part of Fujian province. The Qing were "reluctant colonizers" but became convinced of Taiwan's value to their empire due to the threat the island posed if used as a base by rival powers, and by its abundant resources. The Qing turned Taiwan into its own province in 1885, after Japanese interest and a defeated French invasion attempt.