Hello Melo

If you marry a Spanish citizen and you both reside in Spain, you will be able to obtain a residence card allowing you to live and work in Spain. If he lives our of Spain but is able to stay in Spain for at least 185 days per year and remains registered at the Town Hall, you should have no problems to renew the cars.

He certainly needs to be residing in Spain at the time you apply for the initial residence card.

Regards,