Social security registration of a foreign worker in Spain: the step that validates the permit
The TGSS requires a foreign worker to be registered before work starts and no earlier than 60 calendar days ahead, on form TA.2/S via Sistema RED.
Registration is filed with the Tesorería General de la Seguridad Social (TGSS) before the worker starts providing services, and no earlier than 60 calendar days before the start date. It is transmitted through the Sistema RED using form TA.2/S. Without that registration, a granted work authorisation can fail to take effect.
The real deadline and who files it
The TGSS rule has two ends, and both matter. Registration must be filed before services begin, with no exception for foreign workers, and it cannot be filed more than 60 calendar days ahead of the start date. The employer therefore has a two month window, but the last usable day in that window is the day before the first day of work, not the afternoon of the first day itself.
Terminations and changes to a worker's data run on a different clock: the TGSS allows three calendar days from the event. A change of contribution group, a change of contract, or a termination at the end of a site that is reported late counts as the employer's own failure rather than a defect in the immigration file, but it lands in the same record the Labour Inspectorate reads.
Filing happens through the Sistema RED, the Social Security electronic channel by which an employer or its authorised payroll agent sends affiliation movements. The document is form TA.2/S, which covers registration, termination and data changes for an employee. There is no separate form for foreign nationals: once the person holds a foreigner identity number (NIE) and an affiliation number, the procedure is the one used for a Spanish worker, with the same contribution account code and the same group.
Before registration: the affiliation number and the NIE
A worker who has never contributed in Spain has no social security affiliation number (NAF), and without a NAF no registration can be filed. The NAF is requested on form TA.1, the initial affiliation application, once in a working lifetime. The employer may file it on the worker's behalf.
The second prerequisite is the NIE. A foreign worker obtains it with the visa and entry into Spain, and without it the TGSS cannot identify the person. This is the order an origin country hire has to respect, and the point where days are lost when the plan is built backwards.
| Step | Document | Body | Deadline |
|---|---|---|---|
| Worker identification | NIE | Immigration office or consulate | With the visa and entry |
| Initial affiliation | Form TA.1 | TGSS, Sistema RED | Before registration, once only |
| Registration in the general scheme | Form TA.2/S | TGSS, Sistema RED | Before work starts, at most 60 calendar days ahead |
| Termination or data change | Form TA.2/S | TGSS, Sistema RED | 3 calendar days |
Registration itself carries no fee. The fees in this corridor are the immigration and visa fees, itemised in the cost of hiring a foreign worker in Spain.
Why registration validates the permit
Article 209 of the Regulation approved by Royal Decree 1155/2024 of 19 November closes the loop. Where the effectiveness of a residence and work authorisation is conditional on the worker being registered with social security, the administration verifies that registration on its own initiative before issuing the foreigner identity card. The employer does not attach proof of registration as one more annex: the administration looks it up.
The practical consequence is blunt. An employer who leaves registration until the first payroll run ends up with a granted authorisation that produces no effects and a card application that does not move, while the worker is already in Spain counting the one month allowed to apply for the TIE. The immigration file looks stalled with no visible request for documents, because what is missing sits in the affiliation record rather than in that file.
The sequence that holds the calendar together after the authorisation is granted runs through the employer procedure for a residence and work permit and the consular visa stage, which sets the real entry date.
For an operations manager this reduces to one date that has to be fixed before any flight is booked: the registration date. The NAF, the NIE and the entry date are scheduled backwards from it, because all three have to be settled before form TA.2/S can be filed.
Keep reading
All posts →What a UK sponsor licence costs an employer in 2026
The Home Office charges £1,682 for a medium or large Worker sponsor licence, £525 per Certificate of Sponsorship and £1,320 a year in skills charge.
UK skilled worker salary thresholds and going rates 2026
The Home Office sets an hourly floor of GBP 17.13 under Table 1 of Appendix Skilled Occupations and GBP 12.82 under Table 2, each alongside the going rate.