In 1511, following the fall of Melaka to the Portugal, Sultan Mahmud retreated to Pahang where he stayed a year. During his stay, he arranged a marriage between Sultan Mansur and one of his unnamed daughter, whose mother was a Kelantanese princess.