how long do you have to live in spain to get citizenship?
Before one is able to apply for citizenship in Spain, in order to meet the 10 years of residence criteria he or she will need to apply for permanent residency. Permanent residents are required to have lived in Spain for at least five years. Residency must be legal and continuous immediately prior to the application.