The NIE is a tax identification number in Spain, known in Spanish as the NIE, or more formally the Número de identidad de extranjero ("Foreigner Identity Number"). The Spanish government have linked the NIE number to residence, where the NIE appears on the tarjeta de residencia (residence card),[1] and to social security in Spain.