Hi,

I am a Spanish national who married a non-EU person (from Syria). As soon as you get married, you apply for permanent residency which they give you in the form of a 5 year residency ID. After one year of being married you can apply for a passport/citizenship but the whole process is very slow and you will probably have to wait between 3-5 years like my husband did (he waited 5 in total). You would have to live in Spain for this time and learn Spanish as you will be tested when its time to get your passport.

Good luck!