Ten years, or much less
10 years is the rule. 5 years apply to refugees; 2 to nationals of Ibero-American countries, Andorra, the Philippines, Equatorial Guinea and Portugal, and to Sephardic Jews; 1 year to special cases such as being born in Spain or married to a Spaniard.