Hello Curieroy,

You will be able to opt for permanent residency after 5 years of legal residence in Spain.