Ahmad Shah was deemed incompetent and was killed by Mahmud Shah himself in 1513 after a failed attempt to retake
Malacca from the Portuguese. Mahmud Shah then reclaimed the throne, although by then the Malacca sultanate had been abolished, thus making him a pretender. Fatimah's eldest son,
Raja 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, 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. The Malaccan
Sultan's power was almost restricted to a
figurehead. Tun Fatimah created an alliance with neighbouring kingdoms by letting her children marry the
royal families of
Aceh,
Minangkabau and Borneo. No one knows how long she had lived for, as well as when and where she died. However, fellow historians of the Malay Archipelago suggested that her
tombstone is located in
Kampar,
Riau on the
Indonesian
island of Sumatra. ==Places and things named after Tun Fatimah==