This is the first step—and perhaps the most difficult, as it depends on multiple factors to get residency in Spain. When it comes to duration, the residency may be temporary or permanent, and there are different types: residency as a student, an entrepreneur, and a highly qualified professional.You can opt for any of them if you meet the requirements—but whichever you choose, you must complete this process in order to reside legally in the country.