Dominique and Mohamed had hoped to wed in September in Jacob-Bellecombette in the French Alps but the Chambéry public prosecutor's office blocked the marriage.
It cited a justice ministry circular that said that longstanding bilateral agreements meant that the citizens of 11 countries, including Morocco, were subject to the marriage law of their country of origin and that those countries do not endorse same-sex unions.
The 1981 agreement with Morocco stipulates that conditions for a marriage are controlled by "the law of the country of which [each partner] has citizenship".
The circular argued that bilateral agreements have a higher authority thatn French law.
But the court pointed that the the wording of the same-sex marriage law contradicts that assertion in saying that "two people of the same sex may marry when, for at least one of them, either the law of his or her country or the law in the state or territory in which he or she has a home or residence allows it";
That "implicitly but necessarily" changes the situation and means that "discrimination to the right to marry based on sex justifies the removal of article five of he Franco-Moroccan agreement".