Hello Zaibi

Once you marry your partner, you will be able to apply for the Family reunion permit for him ( reagrupacion familiar ) and for that he will need to go back to his country to file the application. He cannot get the same regimen comunitario you have as he has no family link with an EU citizen.

Also, if he does not want to go back to his country for that purpose, as he has been on Span for 3 years, he can try the Arraigo Social option, as long as he can prove 3 years residing in Spain and has a work contract in place.

You can read information about Arraigo Social here, and about Reagrupacion familiar here.

Regards,