How a Foreign Company Can Employ Directly in Spain
Spanish tax law expressly covers employers that are not resident in Spain and have no permanent establishment. Article 99.2 of the Personal Income Tax Law (Ley 35/2006) and article 76.1.d) of its Regulations oblige them to withhold IRPF on the employment income they pay. In practice this means the foreign company calculates the withholding each month, pays it to the Spanish Tax Agency and files the periodic withholding return (Form 111, quarterly as a general rule).
On the Social Security side, the law treats as an employer any individual or legal entity on whose behalf people covered by the system work (article 138.3 of the General Social Security Law), and registration is a prerequisite before the activity starts (article 138.1). The application asks, among other details, for the company’s address, a place for notifications and the code of the applicable collective agreement (article 11 of Royal Decree 84/1996). If your company has no address in Spain, our corporate domiciliation service in Madrid provides one.
Which Social Security system applies depends on the case. Spanish law covers people who carry out their activity in Spain, remote workers included, and within the EU someone who lives and works in another country registers with the social security system of the host country: so an employee who lives and works only in Spain is, as a rule, insured in Spain. An employee posted temporarily within the EU can keep home-country cover with an A1 certificate for up to 24 months, and people working in several countries follow the rule of a substantial part (at least 25% of working time or income) in their country of residence.
The law governing the employment contract is set by the Rome I Regulation (article 8): absent a choice, the contract is governed by the law of the country where the employee habitually works, and if the parties choose another law, that choice cannot deprive the employee of the protection of the mandatory rules of the law that would otherwise apply. For someone who habitually works in Spain, that points to Spanish labour law and the applicable collective agreement. Our payroll service page summarises that framework.
- Non-resident employers without a PE must still withhold IRPF on salaries (art. 99.2 LIRPF)
- Periodic withholding return: Form 111, quarterly as a general rule
- Social Security registration as an employer, before the activity starts (art. 138 LGSS)
- EU postings: A1 certificate for up to 24 months
- Law of the contract: Rome I Regulation, art. 8 (place of habitual work, and protection that is not lost by choosing another law)
