a decade in an attempt to wage another war while imposing a ban on inter-border trade for two decades. The Burmese were also preoccupied with another impending invasion by the Qing dynasty, and kept a series of garrisons along the border. After twenty years, Burma and the Qing dynasty resumed a diplomatic relationship in 1790. To the Burmese, the resumption was on equal terms. However, the Qianlong Emperor unilaterally interpreted the act as Burmese submission, and claimed victory. Ironically, the main beneficiaries of this war were the Siamese. After having lost their capital Ayutthaya to the Burmese in 1767, they regrouped in the absence of large Burmese armies, and reclaimed their territories over the next two years. Taiwan rebellion (1786–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 all 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 rout 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. The Qing general Fuk'anggan quelled the rebellion with a force of 20,000 soldiers and executed Lin Shuangwen. Two campaigns against the Gurkhas (1788–1793) The campaigns against the Gurkhas displayed the Qing imperial court's continuing sensitivity to conditions in Tibet. First campaign The late 1760s saw the creation of a strong centralised state in Nepal. The Gurkha rulers of Nepal decided to invade southern Tibet in 1788. The two Manchu resident agents (ambans) in Lhasa made no attempt at defence or resistance. Instead, they took the child Panchen Lama to safety when the Nepalese troops came through and plundered the rich monastery at Shigatse on their way to Lhasa. Upon hearing of the first Nepalese incursions, the Qianlong Emperor ordered troops