Known as Raja Mansur before his accession, he is the son of the second Sultan of Pahang, Ahmad Shah I by his wife, a daughter of Bendahara Tun Hamzah.[citation needed] He ascended to the throne at a very young age following the abdication of his father, Ahmad Shah I, who went into religious seclusion in 1495.[2] As a result, he reigned under the rule of his cousin, Abdul Jamil Shah I and assumed full control only in 1512 after the death of the latter.[3]