Working remotely from Spain for a company with no physical presence in the country is today a fully regulated operation, not a grey area. The procedure described here is available to any non-resident entity — US, German, British, Irish, Dutch — and allows the entity to run Spanish payroll, trigger the Beckham regime for the relocating worker and meet every formal obligation without creating a Permanent Establishment. That said, each step has a form, a deadline and mandatory documentation; improvising any one of them opens a reporting front with the Spanish tax agency, the social security treasury or, worse, a PE classification that drags the foreign entity into Spanish corporate income tax.
Legal basis and why it works
The setup rests on Article 13 of the Consolidated Non-Resident Income Tax Act (TRLIRNR) on income obtained without a PE, on Article 5 of the OECD Model Convention and on the double-tax treaties Spain has signed with the main home countries of employers. On the labour and social security side, the General Social Security Act and the RED system run by the social security treasury accept the figure of a foreign employer without PE as a contributor. On the tax side, the Spanish tax agency grants an N-prefixed tax ID to non-resident entities assuming obligations in Spain. The operation holds because the entity commits only as a paying agent, not as a taxpayer of Spanish corporate income tax.
Step 1 — N-prefixed tax ID for the non-resident entity
The application is filed with the Spanish tax agency using Form 036 (Census Declaration), ticking the box for a non-resident entity without a permanent establishment. The agency issues a tax ID starting with the letter N. Documentation: certificate of legal existence of the entity in its home jurisdiction (apostilled where applicable), appointment of the legal representative, articles of incorporation or certificate of incorporation, and a specific power of attorney for the Spanish fiscal representative where we act in that capacity. Usual timeframe: between five and fifteen business days, with an option for additional review if the file is complex. The N-prefixed tax ID is issued for specific tax obligations and does not imply a corporate income tax census registration.
Step 2 — Foreign-employer social security code (TGSS)
With the N-prefixed tax ID in hand, we file Form TA.6 with the social security treasury to register the company as a foreign employer without PE. This is the critical piece of the procedure: without the foreign-employer code, the worker cannot be enrolled in the Spanish system. The treasury issues a specific code identifying the company as foreign. Documentation: N-prefixed tax ID, representative credentials, employment contract of the first worker and — under EU Regulation 883/2004 — an A1 certificate from the home country where social security coordination applies. It follows that coordinating with the origin-country payroll must start before Day One.
Step 3 — Worker enrolment, contract and first payslip
With the foreign-employer code active, worker enrolment in the general social security scheme is processed through the RED system or in person at the relevant office. The employment contract must be signed under Spanish law with the usual formalities: duration, annual gross salary, working-time regime, confidentiality and non-compete clauses, and the anti-PE clauses we develop below. The first payslip issues in euros with IRPF withholding applied — 24% under the Beckham regime when elected, general scale otherwise — employer and employee contributions, and statutory deductions. Which is why coordination of payroll porting between the origin-country payroll and Estrategeos as representative is synchronised on effective Day One.
Recurring obligations of the non-resident employer
Once the foreign-employer code is active, the entity assumes six periodic obligations. First, quarterly Form 111 for withholdings on employment income paid within the first twenty days of the month following the quarter — or Form 216 when withholding under the non-resident regime. Second, annual Form 190 or Form 296 with a breakdown of recipients. Third, monthly social security settlement (electronic TC1/TC2) through the RED system. Fourth, updating worker enrolments, terminations and changes. Fifth, compliance with occupational risk prevention rules adapted to remote work. Sixth, working-time records. Against that backdrop, a stable fiscal representative in Spain manages full compliance.
The central risk: Permanent Establishment
The main risk of the model is that the worker's activity in Spain ends up classified as a PE of the foreign entity. The triggers under Article 5 of the OECD MC and Article 13 TRLIRNR are: a fixed place of business (office, workshop, branch); a dependent agent with authority to conclude contracts binding the company; a construction or project above the DTT threshold; and, under the 2017 Model with the MLI, fragmentation of activities. If a PE is found, the entity must pay Spanish corporate income tax on the profits attributable to the PE and take on bookkeeping, Form 200, notes to the accounts and short-form annual accounts. The total tax burden often doubles or triples.
Anti-PE clauses: contract and day-to-day operation
Protection against a PE finding is built in five contractual and operational pieces. First, functional definition of the worker as a person without authority to bind the company: explicit no-authority clause. Second, contracts with Spanish clients and third parties are always signed by the parent company from its jurisdiction of incorporation, never by the worker in Spain. Third, the worker has no office open to the public nor facilities identifiable as the company's in Spanish territory. Fourth, strategic and operational decision-making is documented by board minutes signed outside Spain. Fifth, business cards, email signatures and corporate documentation identify the company at its head office without reference to Spain. Setting aside these precautions, the defence in an eventual tax-agency review is disarmed.
Fit with the worker's Beckham regime
The worker relocating from abroad may opt into the Article 93 LIRPF regime through Form 149 within six months from social security enrolment. The foreign employer withholds 24% on Spanish-source employment income up to €600,000 and 47% on the excess for the six tax years of the regime. It follows that the critical calendar is: N-prefixed tax ID Day 5, foreign-employer code Day 15, worker enrolment and first payslip Day 20, Form 149 Day 30. Any slippage beyond forty-five days from social security enrolment puts the six-month Beckham window at risk through year-end overlap.
Social security coordination: A1 certificate and bilateral agreements
Where the home country is within the EU/EEA/Switzerland and the worker was already contributing there, EU Regulation 883/2004 may allow temporary retention of the home-country legislation up to twenty-four months with an A1 certificate. Under bilateral agreements with third countries (US, Canada, Morocco, Brazil, Argentina and others), equivalent coverage certificates apply with typical durations of twenty-four or sixty months, renewable. The choice between contributing in Spain from Day One or keeping origin-country coverage with an A1 has strategic consequences: it affects pension rights, unemployment protection and the contribution amount. The call is made case by case with the home-country adviser.
Who can act as fiscal representative
The non-resident entity appoints a Spanish fiscal representative with Spanish tax residence and sufficient means to discharge the obligations. The representative interfaces with the tax agency and the social security treasury under a specific power of attorney, files quarterly and annual returns, handles notifications, pays withholdings on behalf of the entity and leads the dialogue in case of a review. At Estrategeos we act as fiscal representative for entities from the US, UK, Germany, Ireland and the Netherlands with full monthly operation.
Where the firm stands
Our reading is that registering a foreign employer is a mature and sustainable operation when sequenced well and documented at every step. The standard engagement includes N-prefixed tax ID, foreign-employer social security code, bilingual employment contract with anti-PE clauses, monthly payroll management, withholdings and VAT where applicable, Form 149 and Beckham maintenance, annual returns and support in reviews where they occur. For employers with more than three workers relocated to Spain or with hiring plans, we periodically re-assess whether the right call is still the figure without a PE or whether a Spanish subsidiary should be incorporated: the threshold typically lands at the fourth or fifth worker. If the tax agency opens a PE classification file, the documentary defence starts with the contract, continues with board minutes and ends with the real invoicing flow.