Most of what is known about his life is gathered from autobiographical notes in his own work. Leo Africanus was born as al-Hasan, son of Muhammad in Granada around the year 1494. The year of birth can be estimated from his self-reported age at the time of various historical events. His family moved to Fez soon after his birth. In Fez he studied at the University of al-Qarawiyyin (also spelled al-Karaouine). As a young man he accompanied an uncle on a diplomatic mission, reaching as far as the city of Timbuktu (c. 1510), then part of the Songhai Empire. In 1517 when returning from a diplomatic mission to Constantinople on behalf of the Sultan of Fez Muhammad II he found himself in the port of Rosetta during the Ottoman conquest of Egypt. He continued with his journey through Cairo and Aswan and across the Red Sea to Arabia, where he probably performed a pilgrimage to Mecca.