Born in the city of Fes, he began his career in government during the reign of Sultan Hassan I. Under the next sultan, Abd al-Aziz, he was the country's 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 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 bin 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 by the colonial authorities until the exiled Sultan Muhammad could return to the country and assume the throne as King Muhammad V.
Al-Muqri (sometimes spelled El Mokri) left politics in 1955, shortly before Morocco gained its 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 are doubtful. There are no birth records or other evidence for these claims. It is rare to attain such an age and unheard of to be head of government at 110 or 114. John Gunther's book Inside Africa (published 1955) says he was born in 1851: other sources list his birth year as 1854.