Some of the Malays however switched sides in the course of the war: for example the Dato Dagang Mohamed Tahir who helped Raja Mahadi capture Klang from Raja Abdullah eventually switched to Tengku Kudin's side (the Batu Bara Malays were originally on Raja Abdullah's side but switched to Raja Mahadi's side just before his fight against Raja Abdullah); Syed Mashhor, an Arab-Malay fighter from Pontianak was originally on Raja Abdullah's side but switched to that of Raja Mahdi; and Raja Muda Musa of Kuala Selangor also went over to Raja Mahdi's side. In the later stages Tengku Kudin gained the support of British colonial administrators and fighters from Pahang.