Dato Maharaja Lela was a Malay nationalist from Perak. A descendant of Daeng Salili, Pandak Limo was the son of a Bugis king from Luwuk District, Sulawesi. During the reign of Sultan Muzaffar Shah III, he came to Perak and was appointed Mufti and was awarded the title "Dato Maharaja Lela," granting him the authority to punish by decapitation without question. Pandak Limo was a leader who later led the struggle against the British in Perak. Together with other leaders such as Dato 'Sagor, he planned an alliance to assassinate James Wheeler Woodford Birch, the British Resident of Perak. His decision was approved in a meeting at Durian Sebatang, chaired by Sultan Abdullah on 21 July 1875. Dato Maharaja Lela and his assistants, Sepuntum and Pandak Lam speared Resident Birch to death on 2 November 1875, as Birch was taking his bath by a river near Pasir Salak, which is located somewhere around today's Teluk Intan.
There is debate over the reason for Birch's assassination. One view is that he was assassinated was because he outlawed slavery in Perak. Dato Maharajalela, whose income depended on capturing and selling the natives of Perak or Orang Asli as slaves, was then incensed and plotted with some of the slave-traders to kill Birch by spearing him when he was taking his bath in the river. The more popular view among right-wing Malay historians is that Birch was assassinated because of his disrespect for the local customs and traditions, which raised tensions with local Malay chiefs. This is because modern Malay historians generally refuse to accept that the Orang Asli were being traded as slaves in the pre-Colonial era. Some accounts claim that Birch even entered the palace of the ruler Sultan of Perak without removing his shoes. The murder of J. W. W. Birch led the British army to attack Pasir Salak, and following several days of battle, the leaders of the rebellion surrendered. In a subsequent trial held between 14 and 22 December in Matang, Perak, Sultan Abdullah and Ngah Ibrahim was deposed and sent to exile in Seychelles. Dato Maharajalela, meanwhile, was found guilty for the murder of Birch and sentenced to death. He was executed by hanging on 20 January 1877 in Taiping. In the wake of the incident, the British administration was shifted to Taiping. Dato' Maharajalela is generally celebrated as a folk hero by Malay nationalists, and seen as a symbol of the Malay resistance against British colonialism. The terms maharajalela, and merajalela, stem from his name to describe uncontrollable actions or phenomena.