Born in the city of Fez, he began his career in government in the reign of Sultan Hassan I. Under the next sultan, Abd al-Aziz, he was the countries representative to the 1906 Algeciras Conference at which Germany's demand for a say in Moroccan affairs was rejected in favor of France and Spain. In recognition of his efforts to resolve the Moroccan Crisis leading up to the international conference, Abd al-Aziz appointed al-Muqri as his Minister of Finance and in 1908, his Grand Vizier, a post he would hold on and off under each of the succeeding sultans until 1955. In 1909, the new sultan Abd al-Hafid restored him to the post of Minister of Finance but promoted him to Grand Vizier in 1911. Al-Muqri resigned in the post two years later, but was reappointed to it by Sultan Yusef and was kept in the position by his successor, Sultan Muhammad, when he ascended the throne in 1927. In 1953, when Muhammad was deposed by the French for nationalist agitation and replaced by his uncle, Sidi Muhammad ben Moulay Arafa, the colonial authorities decided to keep al-Muqri in his position. Once independence was promised, Sidi Muhammad abdicated, and al-Muqri was chosen to head the Regency Council until the exiled Sultan Muhammad could return to the country and assume the throne as King Muhammad V.
Al-Muqri (spelled in some sources El Mokri) left politics in 1955, shortly before Morocco gained her independence. He died two years later, at the reputed age of 112, according to The Guinness Book of World Records, or even of 116, according to other sources. Both figures must be highly doubted. Apparently there are no birth records nor any other evidence for those claims and considering that it is rare enough to attain such an age in itself, the idea that he still was head of government at 110 or 114 is extremely unlikely. John Gunther's book Inside Africa (published 1955) said that he was born in 1851,and other sources have listed him as born in 1854.