
Setting up a company in Spain as a foreign entity requires a prior analysis of a range of legal, tax and operational requirements, which vary depending on the type of activity and the chosen market entry model. Understanding these obligations from the outset allows the project to be properly structured, unnecessary risks to be avoided and decisions to be taken in line with Spanish regulations.
Before starting any formal procedures, it is essential to review a number of key aspects, such as the activity to be carried out in Spain, the most appropriate legal structure, the applicable tax regime and the existence of double taxation treaties.
In addition, it is necessary to assess the legal obligations that will apply and determine whether the operation can be managed remotely or whether it is advisable to rely on specialised support in Spain.
Common ways for a foreign company to establish a presence in Spain
Index of contents
Depending on the level of presence and the nature of the activity, a foreign company may choose between different forms of establishment in Spain.
Representative office
This is an initial form of presence that does not have its own legal personality and does not allow the performance of economic activities in Spain.
It is mainly used for preparatory or auxiliary functions, such as market research, feasibility studies or informational activities prior to a more permanent establishment.
Branch
A branch does not have separate legal personality and operates as an extension of the foreign parent company in Spain.
Unlike a representative office, a branch may carry out economic activities, with the foreign parent company assuming the legal and tax liability arising from those activities.
Subsidiary
A subsidiary is a Spanish company with its own legal personality, owned or controlled by a foreign company. Although it maintains a link with the parent company, it operates as an independent entity for legal and tax purposes.
The incorporation process for a subsidiary is similar to that of any Spanish company, although it involves certain specific formalities when shareholders or directors are non-residents:
- Application for a negative name certificate with the Commercial Registry to confirm name availability.
- Obtaining an NIE for non-resident shareholders or directors involved in the incorporation.
- Contribution of share capital, in accordance with the chosen legal form.
- Application for the company’s provisional NIF with the Spanish Tax Agency.
- Execution of the public deed of incorporation before a Spanish notary.
- Settlement of any applicable taxes, where relevant.
- Registration of the deed with the Commercial Registry.
- Obtaining the company’s final NIF.
Key requirements for a foreign company operating in Spain
There are several requirements that a foreign company must meet in order to set up and operate in Spain, which are often overlooked in the early stages of market entry. The main ones include:
- Obtaining an NIE (Foreigner Identification Number) for non-resident individuals involved in the incorporation or management of the company. This can be processed through the Spanish Consulate in the country of residence or at a Police Station in Spain, either in person or through a legal representative.
- Application for the company’s NIF with the Spanish Tax Agency. Legal entities and entities without legal personality must apply through the relevant census declaration (Form 036), which is required to commence economic activity in Spain.
- Electronic certificate and mandatory electronic notifications. Foreign companies are required to interact electronically with the Spanish Tax Agency, which means holding a valid electronic signature certificate to receive official communications and notifications.
- Declaration of foreign investments (Form D-1A). In certain cases, foreign investments in non-listed Spanish companies must be reported using Form D-1A, generally within one month of the investment.
- Appointment of a legal and tax representative in Spain, where mandatory or advisable depending on the form of establishment and the existence of a permanent establishment. The representative must have sufficient powers to act before the Spanish authorities on behalf of the company.
The importance of specialised advice
While specialised advice is not a legal requirement, it is highly advisable when a foreign company decides to operate or establish itself in Spain. Spanish tax, corporate and administrative regulations include specific features that can directly affect the structure and medium- to long-term viability of the project.
In this context, the value of a specialised business consultancy lies not only in handling formal procedures, but in the ability to analyse each case individually, anticipate tax and legal implications and support decision-making from the outset. Experience with foreign companies, up-to-date knowledge of applicable regulations and the ability to maintain clear communication in English are key factors.
At LEIALTA, we support foreign companies and investors throughout the entire establishment process in Spain, from the initial project assessment to the ongoing management of tax and legal obligations. We also provide complementary services that facilitate day-to-day operations, such as legal and tax representation and cash handling services. This integrated approach ensures legal certainty and allows operations to be structured efficiently, in line with business objectives.
Ultimately, proper planning and the support of specialised professionals help minimise risks, prevent unnecessary issues and lay solid foundations for the successful development of business activities in Spain.


