How to obtain a NIE number in Spain

What is the NIE? Foreigners in whose favor a procedure is initiated to obtain a document that enables them to remain in Spanish territory other than a visa, those for whom an administrative file has been initiated by virtue of the provisions of the regulations on immigration and those who, due to their economic, professional [...]