It is a foreigner’s tax number and is the first thing you need when buying or selling a property in Spain. You also need it for many other activities such as applying for a mortgage, setting up utilities supplies, getting insurance, receiving inherited assets in Spain or setting up a company.