 Only then would Tun Ali step down from his position as Prime Minister for the more effective Tun Perak, Tun Kudu's brother, to take his place..Tun Fatimah was already married to her cousin, Tun Ali (not to be confused with their ancestor of the same name) when Sultan Mahmud set his sights on her to become his new wife.