You are using an out of date browser. It may not display this or other websites correctly. You should upgrade or use an alternative browser.
alternatehistory.com
Your challenge is pretty much exactly what the title says: prevent the Kingdom of Tungning from getting annexed by the Qing dynasty or another power for as long as you can.