After allied district chiefs had repelled assaults from Thai-controlled armies from Pahang, Tun Perak personally led a famous victory over a Thai fleet off Batu Pahat in 1456.
Tun Perak failed to lead his army to victory and was killed in 1456.