Known as Raja Jamil before his accession, he is the eldest son of the first Sultan of Pahang, Muhammad Shah by his wife, Mengindra Putri.[citation needed] Following the abdication of his uncle, Ahmad Shah I and the proclamation of his cousin Raja Mansur as the new Sultan in 1495, Raja Jamil took responsibility for guardianship of the young Sultan.[2] He was subsequently appointed by another cousin, Mahmud Shah of Melaka as Sultan of Pahang and reigned jointly with Mansur Shah.[2]