Morocco announced Wednesday that it was suspending all judicial cooperation with France following a diplomatic row over lawsuits filed in Paris accusing the kingdom's intelligence chief of "complicity in torture."
"All agreements on judicial cooperation between the two countries have been suspended... to eliminate the distortions that have affected them," the justice ministry said in a statement.
It has also recalled the Moroccan judge responsible for liaising with France on the agreements.
Morocco has strong commercial and cultural ties with its former colonial ruler.
But the kingdom reacted furiously to the announcement last Thursday of two civil lawsuits filed by an NGO in Paris against Abdellatif Hammouchi, the head of its domestic intelligence agency, over his alleged role in the torture of a Sahrawi independence activist jailed for 30 years in 2013.
Moroccan officials have expressed outrage at the decision to send seven French policeman to the ambassador's residence to inform Hammouchi, who was in Paris accompanying the interior minister on a visit, of a summons issued by the investigating judge.
President Francois Hollande called Morocco's King Mohammed VI to reassure him of France's "constant friendship," and "dispel misunderstandings".
But the gesture failed to prevent thousands of protesters from demonstrating outside the French embassy on Tuesday.
The row was also enflamed by an off-the-cuff remark by Spanish movie star Javier Bardem, in which he let slip private comments by a French ambassador.
Bardem, who was promoting his new film about rights abuses in a former Spanish colony, the Western Sahara, which was annexed by Morocco in 1975.
Alluding to the idea that Paris had ignored the human rights abuses in Morocco, mentioned a conversation he claimed to have had with France's United Nations ambassador in the US in 2011.
He claimed that the ambassador had described Morocco as, "A mistress with whom we sleep every night, even if we are not particularly in love, but whom we must defend. In other words, we turn a blind eye."