In 1874, Japanese troops invaded southern Taiwan to attack aboriginal tribes, in revenge for the killing of 54 Ryukyuan sailors in 1871.