This ruler stood firm against the pagan practices of his subjects and was declared the Caliph of the Western Sudan after taking a notable pilgrimage to Mecca in 1496.
This ruler, who was advised by the author of The Obligations of Princes, al-Maghili, consolidated his power by instituting a unified system of weights and measures.  He instituted a class of overseers named fanfa, who would look over his royal estates.  This man invited important scholars to the University of Sankore and he separated his kingdom into four regions including Benga and Kurmina.  After gaining control of the important trade route to Air he went on to conquer Hausaland.  This ruler stood firm against the pagan practices of his subjects and was declared the Caliph of the Western Sudan after taking a notable pilgrimage to Mecca in 1496. He initially gained power by winning the Battle of Anfao and overthrowing Sonni Baru.  However, this man who would extend the empire to the salt mines of Taghaza, was deposed by his sons and ultimately buried in Gao.  For 10 points, identify this Songhai ruler.
This ruler, who was advised by the author of The Obligations of Princes, al-Maghili, consolidated his power by instituting a unified system of weights and measures.  
Askia Muhammad (or Muhammed I Askia or Askia the Great or Muhammad Ibn Abi Bakr Ture; prompt on Muhammad I)