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. It is said that the Sultan was upset that Tun Mutahir kept the fact that he had a beautiful daughter away from the sultan and married her off to someone else.
Tun Fatimah's marriage to her cousin, Tun Ali, is a factor in the Sultan's desire for her as his wife. The Sultan's anger at Tun Mutahir for concealing his daughter's beauty and marrying her elsewhere is central to this narrative.