Akanbi obtained a scholarship to study law at the Institute of Administration, now Ahmadu Bello University, Zaria, followed by legal studies in the United Kingdom. He was called to the English Bar in 1963, and was called to the Nigerian Bar in January 1964. He joined the Ministry of Justice and became a Senior State Counsel in 1968. In 1969 he set up in private practice in Kano. In 1974 he was appointed a judge of the Federal Revenue Court, and in January 1977 he was elevated to the Court of Appeal Bench. In 1992 he was made President of the Nigerian Court of Appeal, a position he held until retiring in 1999. His son is also a lawyer, becoming Chairman of the Ilorin branch of the Nigerian Bar Association.
Independent Corrupt Practices Commission
In 2000 President Olusegun Obasanjo appointed Akanbi as Chairman of the newly established Independent Corrupt Practices Commission. By 2004, the ICPC had failed to obtain any significant convictions, and Akanbi publicly questioned why the government had set up the ICPC and appointed competent people to run it "only to frustrate it from performing by starving it of funds". He said that another issue was that the law forbade it from investigating corrupt practices dating before the creation of the ICPC. In March 2004, Akanbi urged parliamentarians to ratify the United Nations and the African Union Conventions Against Corruption, which would greatly assist the struggle against corruption. As of July 2005, the ICPC charged 85 people but had only secured two corruption-related convictions. Commenting on this record, Akbani said he suspected that some judges had been paid off to toss out cases. In September 2005 Akanbe said, "Corruption has been described as a cankerworm, a malaise that has afflicted our nation and done havoc to our corporate existence". He attributed the problem to lack of will by past military leaders to fight corruption, inconsistency in government policies, and reluctance by law enforcement agencies to arrest and prosecute "sacred cows".
In retirement
Akanbi retired in 2005 on completion of the first term of office. He joined the board of the Justice and Law Enforcement Reformation Organization, a non-profit organization that aims to eradicate corruption and poverty from the perspective of the Judiciary and Law Enforcement agencies. In 2006, Akanbi established the Mustapha Akanbi Foundation in Ilorin, Kwara State, dedicated to strengthening civil society groups, governmental agencies and private business concerns and helping them imbibe a culture of transparency and accountability. In August 2009 he called on Nigerian Muslims to shun the ideas of the Boko Haram sect, which teaches that non-Islamic education is a sin. He said that both Western and Islamic education were germane to the development of mankind. He died on 3 June 2018 at the age of 85.