 Sultan Mahmud died in Kampar, Sumatra in 1528 and was known as Marhum Kampar.When Laksamana Khoja Hassan died, Hang Nadim was appointed as the new Laksamana.Hang Nadim assisted Sultan Mahmud in the two attempts he made to recover his throne in 1519 and 1524.