If you have European ancestry you may quality for citizenship (check back at least three generations).
If you were born in Ibero-America (former Spanish and Portugese colonies including Puerto Rico) you can gain citizenship of Spain with two years of residence.