Hello,

You do not need to register your marriage in a Spanish Civil Registry for you to be able to apply for a residence permit. As long as it is correctly legalized you can use it in Spain.

Marriages celebrated abroad can only be registered in a Spanish civil registry if one of the spouses is Spanish.

Regards,