sentences:  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.