Lin Shuangwen rebellion

The Lin Shuangwen rebellion occurred in 1787–1788.

In 1786, the Qing-appointed Governor of Taiwan,, discovered and suppressed the anti-Qing Tiandihui (Heaven and Earth Society). The Tiandihui members gathered Ming loyalists, and their leader proclaimed himself king. Many important people took part in this revolt and the insurgents quickly rose to 50,000 people. In less than a year, the rebels occupied almost the entire part of southern Taiwan. Hearing that the rebels had occupied most of Taiwan, Qing troops were sent to suppress them in a hurry. The east insurgents defeated the poorly organised troops and had to resist falling to the enemy. Finally, the Qing imperial court sent Fuk'anggan while, Counsellor of the Police, deployed nearly 3,000 people to fight the insurgents. These new troops were well equipped, disciplined and had combat experience which proved enough to route the insurgents. The Ming loyalists had lost the war and their leaders and remaining rebels hid among the locals.

Lin Shuangwen, and other Tiandihui leaders had started a rebellion which at first was successful, and as many as 300,000 took part in the rebellion. The Qing general Fuk'anggan was sent to quell the rebellion with a force of 20,000 soldiers, which he accomplished. The campaign was relatively expensive for the Qing government, although Lin Shuangwen and Zhuang Datian were both captured. After the revolt ended, the Qianlong Emperor was forced to rethink the method of government for Taiwan. Lin, who was an immigrant from Zhangzhou, had come to Taiwan with his father in the 1770s. He was involved in the secret Heaven and Earth Society whose origins are not clear. Lin's father was detained by the local authorities, perhaps in suspicion of his activities with the society; Lin Shuangwen then organized the rest of the society members in a revolt in an attempt to free his father. There was initial success in pushing government forces out of Lin's home base in Changhua; his allies did likewise in Tamsui. By this point, the fighting was drawing in Zhangzhou people beyond just the society members, and activating the old feuds; this brought out Quanzhou networks (as well as Hakka) on behalf of the government. Eventually, the government sent sufficient force to restore order; Lin Shuangwen was executed and the Heaven and Earth Society was dispersed to mainland China or sent into hiding, but there was no way to eliminate ill-will between Zhangzhou, Quanzhou, and Hakka networks. Though they never again were serious to push out the government or encompass the whole island, feuds went on sporadically for most of the 19th century, only started coming to an end in the 1860s.

There were more than a hundred rebellions during the early Qing. The frequency of rebellions, riots, and civil strife in Qing Taiwan is evoked by the common saying "every three years an uprising; every five years a rebellion" (三年一反、五年一亂).

The Manchu Aisin Gioro Prince Abatai's daughter was married to the Han Chinese General Li Yongfang 李永芳. The offspring of Li received the "Third Class Viscount" title. Li Yongfang was the great great great grandfather of Li Shiyao 李侍堯 who during Qianlong's reign was involved in graft and embezzlement, demoted of his noble title and sentenced to death, however his life was spared and he regained his title after assisting in the Taiwan campaign.