The Hakka used their matchlock muskets to resist the Japanese invasion of Taiwan (1895) and Han Taiwanese and Aboriginals conducted an insurgency against Japanese rule. The Hakka rose up against the Japanese in the Beipu uprising.