There were now three power centres in the Malay world. Raja Kecil in Riau, Abdul Jalil Shah IV on the east coast of the Peninsula and the Bugis in Selangor and Linggi. The Bugis eventually won the day, in part because Raja Kecil had sabotaged his own popularity by having Abdul Jalil Riayat Shah IV killed in Kuala Pahang.[11]