A foreigner's tax number (NIE) is the identification number of a non-resident that is required to conduct financial activities in Spain. It is assigned individually to each foreigner and is mandatory for the implementation of any official sale and purchase transaction. That is, when buying real estate in Spain, this document is mandatory. You can read more about the necessary documents for obtaining a NIE in our how to get a NIE (Foreigner Tax Number) in Spain article.