 It is said that he was a son of an Egyptian sultan who migrated to Java.In the Sultanate of Demak, he was appointed commander of the army.He went forth with Sultan Prawata, battling against Adipati Jipang, Arya Penangsang.