Social Security Number:
Your employer applies for this number when you start your first job in Spain. This number then stays with you for all subsequent jobs. If you are self-employed, you apply for this number yourself.
To apply for your social security number (numero de seguridad social) you need to go to the social security office (seguridad social) and request the documentation.