To protect their homes from the ravages of war, Hakka communities (including present-day Tienneipu and Meinung) organized the Liutui Volunteer Militia, and it was this force which helped to bring an end to Chu Yi-kui's rebellion. With his Fujianese fighters pursued by Qing troops and hampered by fierce resistance from the Liutui Volunteer Militia in the township of Wantan, Chu was finally defeated in Chiayi County.
為保衛自己家園不被戰火波及，包括今天內埔、美濃等在內的「大莊十三、小莊六十四」，組成「六堆義軍」，分為前、中、後堆，最後朱一貴的閩軍在萬丹鄉四維村遭六堆民兵力抗，加上清朝調來大軍反攻，朱一貴腹背受敵，最後敗於嘉義縣。