If you wish to live, work, study, or research in Spain for a period of more than 90 days, it is necessary to apply for a long-stay visa. These are known as type D visas. This will be the case unless you come from a country of the European Union, Iceland, Liechtenstein, Norway, or Switzerland.