 In 1470 Syarif Hidayatullah went abroad to study at Mecca, Baghdad, Champa, and Samudra Pasai.Later he came home to Java.He learned from Sunan Ampel in East Java, served in Demak court, and later came back to Cirebon.