The Re-Reconquista continues. And not just in Spain.
This is terribly bad precedent. Having Spanish courts enforce the religious law of a foreign state is completely insane. They could do something under contract law: if someone adopting a Moroccan child agrees to provide the child with Muslim religious instruction or the possibility of having it, that’s one thing, because it’s contract law and is a voluntary agreement. However, there’s also a third party involved here, and that is the child. Religion is in the private sphere, and the child has his own will that is not governed by the contract between the adoptive parent and the Islamic state. So how enforceable is this agreement? A parent doesn’t have the right to prevent a child from converting to another religion. So how can the Spanish state insist on this? This is horrible law no matter how you look at it.