Ahmad Shah was deemed incompetent and was killed by Mahmud Shah himself in 1513 after a failed attempt to retake Malacca from the Portuguese.[6] Mahmud Shah then reclaimed the throne, although by then the Malacca sultanate had been abolished, thus making him a pretender. Fatimah's eldest son, Muzaffar Shah I went on to establish a Sultanate in Perak region while her second son, Raja Raden Ali went on to become the second ruler of the Johor Sultanate as Sultan Alauddin Riayat Shah for 36 years. After Malacca fell to Portugal in 1511,[7] it seemed that it was mainly Tun Fatimah's work that expanded the new Malay Johor-Riau from Johore and the Riau islands to parts of Sumatra and Borneo.