He had allegedly conspired to assassinate the sultan of Malacca, Raja Sri Parameswara Dewa Shah. According to other sources, Tun Ali and his nephew, Raja Kassim was conspiring to murder Raja Rokan who was disliked by palace officials. It was said that during the attack, Raja Rokan who was with Sri Parameswara stabbed the king in retaliation to an attacker stabbing Raja Rokan.