
Spain Commercial Law: What the Code Regulates and Which Rules Apply to Business Contracts
Lawants Guide · Commercial Law in SpainSpain still applies a Commercial Code enacted in 1885, but that Code is no longer a complete map of Spanish business law. Company governance, agency, transport, insolvency, digital trade and many other matters now sit in separate legislation.
In this guide, Lawants explains what the Spanish Commercial Code still regulates, how it interacts with the Civil Code and special laws, and which rules foreign businesses should check before signing or enforcing a commercial contract in Spain.
What Is the Spanish Commercial Code?
The Spanish Commercial Code, or Código de Comercio, was published by the Royal Decree of 22 August 1885 and entered into force on 1 January 1886. It established a common framework for merchants, acts of commerce, business records, commercial companies, obligations and contracts.
The Code remains in force, but large parts of its original content have been repealed, replaced or supplemented by later legislation. It should therefore be read as one component of Spanish commercial law, not as a single source containing every rule applicable to a business.
The authoritative source is the consolidated text published by the Spanish Official State Gazette. The BOE also publishes an updated compilation of the Commercial Code and complementary legislation, which better reflects the fragmented framework businesses now have to navigate.
Which Spanish law actually governs your commercial relationship?
A contract can be affected by the Commercial Code, Civil Code, an industry-specific statute, EU rules and the parties’ chosen law at the same time. Lawants identifies the applicable framework before drafting or enforcement begins, preventing a general rule from being applied where a mandatory special provision controls the outcome.
Ranked among the Best Law Firms Spain · Offices in Barcelona and Madrid
Managing Director, Lawants
Response within 24 business hours

Is a New Spanish Commercial Code in Force?
No new Commercial Code has replaced the 1885 Código de Comercio. A proposed new Mercantile Code was developed and reviewed in 2014, but the proposal did not become the general code currently in force. Articles describing its proposed rules on contracts, electronic trade, payment instruments or other matters should not be presented as current Spanish law.
The consolidated Commercial Code currently identifies 9 May 2023 as its latest published update. The broader BOE compilation of commercial legislation is updated more frequently because it also contains the many separate statutes surrounding the Code.
What Does the Spanish Commercial Code Still Regulate?
The Code still provides important rules, but its current scope is narrower than its title suggests. The following areas remain particularly relevant to businesses and commercial disputes.
Core areas that remain relevant under the Code
| Area | What the Code addresses | Additional rules may come from |
|---|---|---|
| Merchants and commerce | Status of merchants and acts of commerce | Civil, sector and EU law |
| Mercantile Registry | Basic registry functions and publicity | Mercantile Registry Regulation |
| Business accounting | Books, annual accounts, group accounts and record retention | Companies Act and accounting standards |
| Personal companies | General and simple limited partnerships | Partnership agreement and special rules |
| Commercial obligations | Special principles for performance, delay and interpretation | Civil Code and special contract laws |
| Certain contracts | Commercial sale, commission, deposit, loan and related transactions | Modern sector-specific legislation |
Merchants and Acts of Commerce
Articles 1 and 2 establish the Code’s traditional concepts of merchant and act of commerce. Commercial acts are governed first by the Code, then by generally observed commercial usages and, where neither supplies an answer, by ordinary civil law.
This hierarchy remains useful, but modern statutes frequently take priority. A transaction should not be classified as commercial merely because both parties are companies. Its subject matter, the parties’ roles and any applicable special law must be examined.
Mercantile Registry and Public Corporate Information
The Code provides the basic foundation for the Registro Mercantil, including the registration of entrepreneurs and companies, legalisation of business books and deposit of annual accounts. Detailed filing procedures are governed by the Mercantile Registry Regulation and later legislation.
Registration can determine whether an act is public and effective against third parties. It should not be confused with tax registration: the Mercantile Registry, Tax Agency and Social Security system perform different functions.
Accounting Records and Business Books
Every entrepreneur must maintain orderly accounting appropriate to the business and keep a daily book and inventory and annual accounts book. Companies also maintain the corporate books required for their form, including minutes and ownership records where applicable.
The Code requires businesses to retain books, correspondence, documentation and supporting records for six years from the last entry, unless another rule requires longer retention. Tax, employment, anti-money-laundering or sector obligations may impose different periods for particular documents.
General and Limited Partnerships
The Commercial Code continues to regulate the sociedad colectiva and sociedad comanditaria simple. These are personal company forms in which at least some partners have personal and unlimited liability. They should be distinguished from an S.L. or S.A., which is principally governed by the Spanish Companies Act.
Commercial Obligations and Contracts
Articles 50 to 63 contain general provisions on commercial contracts and obligations. Other sections address contracts such as commercial sale, commission, deposit and loan. However, modern transactions may instead be governed primarily by a special statute, the Civil Code, international conventions or EU law.
Spanish Commercial Code, Companies Act and Civil Code Compared
The three texts serve different functions. Understanding their boundaries prevents the Commercial Code from being used as a generic label for all Spanish business law.
Which text answers which business question?
| Legal source | Primary function | Typical questions |
|---|---|---|
| Commercial Code | Merchants, accounting, commercial obligations and surviving contract rules | Books, commercial default, trade usages, commission or commercial sale |
| Companies Act | Capital companies such as S.L. and S.A. | Shareholders, directors, capital, meetings, accounts and dissolution |
| Civil Code | General law of obligations and contracts | Consent, object, cause, interpretation, breach, damages and termination |
| Special legislation | Specific contract, industry or regulatory regimes | Agency, transport, insurance, late payment, online trade or consumers |
A single contract can engage all four layers. For example, a distribution agreement may rely on Civil Code principles, Commercial Code rules and competition law, while an agency relationship triggers mandatory protections under the Agency Contract Act.
Commercial Obligations and Contract Law in Spain
Spanish contract law is not contained exclusively in the Commercial Code. The starting point is to identify the contract, the parties and the hierarchy of applicable rules before interpreting a clause or claiming a remedy.
Which Rules Apply to a Spanish Commercial Contract?
Commercial contracts are governed first by any mandatory special legislation and the valid agreement reached by the parties. The Commercial Code supplies applicable mercantile rules. Where it and commercial usage do not resolve the matter, the general rules of the Spanish Civil Code may apply.
For international contracts, the analysis must also consider the chosen governing law, EU conflict-of-law rules and international instruments such as the United Nations Convention on Contracts for the International Sale of Goods when its conditions are met.
Formation and Form of Commercial Contracts
As a general rule, a commercial contract is binding when the essential requirements for validity are met, regardless of the form used. Exceptions apply when legislation requires a public deed, written document, registration or another specific form.
Electronic contracts can be valid, but their formation, evidence, information duties and electronic signature are governed by the Commercial Code together with specific digital and EU legislation. An exchange of emails can create obligations even when the final long-form contract was never signed, depending on the parties’ conduct and what remained subject to agreement.
Good Faith and Interpretation
Article 57 requires commercial contracts to be performed and complied with in good faith, according to their terms, without distorting clear contractual meaning through arbitrary interpretations. The Civil Code, commercial usage and case law remain relevant when wording is ambiguous or the contract is incomplete.
Good faith does not allow a court to rewrite an unfavourable bargain simply because one party later considers it commercially inconvenient. Clear definitions, acceptance criteria, notice provisions and documentary evidence remain essential.
Performance, Delay and Commercial Default
The Code contains specific rules on the enforceability of commercial obligations and delay. Whether default begins automatically or requires a demand depends on whether the obligation has a fixed performance date and on any applicable special rule.
For B2B payments, the Late Payment Act can impose mandatory limits and statutory interest. Contractual payment terms should therefore be checked rather than copied from a foreign template. A clause that appears valid under the parent company’s law may be ineffective or risky in a Spanish transaction.
Was your international contract adapted to the rules that apply in Spain?
A translated template does not resolve mandatory payment rules, local termination rights, agency protections, evidence requirements or jurisdiction. Lawants reviews the transaction as a whole, identifies the provisions that cannot safely be imported and aligns the contract with the way the relationship will operate in Spain.
Over 20 years advising foreign companies on Spanish commercial matters
Managing Director, Lawants
Response within 24 business hours

Spanish Commercial Contracts and the Special Laws That Govern Them
The contract name is not enough to identify the applicable regime. Some agreements are governed mainly by modern special legislation, while others remain atypical and depend heavily on general contract law, competition rules and case law.
Common business relationships and their main legal framework
| Relationship | Main legal sources | Issue requiring attention |
|---|---|---|
| Commercial sale | Commercial Code, Civil Code and potentially CISG | Delivery, conformity, risk and remedies |
| Commercial agency | Agency Contract Act and mandatory EU-derived protections | Termination notice and client indemnity |
| Distribution | Contract, Civil and Commercial Codes, competition law and case law | Exclusivity, targets, termination and analogy with agency |
| Road transport | Land Transport Contract Act | Liability, documentation and claim periods |
| Insurance | Insurance Contract Act | Mandatory provisions and notification duties |
| Online B2B trade | Digital-services rules, electronic-signature rules and contract law | Formation, evidence and information requirements |
| Late commercial payment | Late Payment Act | Payment periods, interest and recovery costs |
Distribution deserves particular care because Spain has no single general Distribution Contract Act equivalent to the Agency Contract Act. Classification depends on the actual relationship, not only the title chosen by the parties.

What Foreign Businesses Should Check Before Signing a Contract in Spain
The most important contract risks are often created before the first draft reaches the lawyers. Lawants uses a practical five-question test to identify the provisions that require local adaptation.
- What will happen in Spain? Identify performance, delivery, personnel, customers and assets located in the country.
- Which law governs? Separate the chosen law from mandatory Spanish and EU provisions.
- How will breach be proved? Define notices, acceptance, records, language and electronic evidence.
- How does the relationship end? Test notice, cause, indemnity, stock, data and transition obligations.
- Where will rights be enforced? Align jurisdiction or arbitration with assets and counterparties.
Governing Law and Jurisdiction
A governing-law clause determines which law applies to the contract, but it does not necessarily exclude mandatory rules of another country. A jurisdiction clause determines where disputes will be heard. These clauses answer different questions and should be drafted together.
The best forum is not always the foreign company’s home court. The location of assets, urgency of interim relief, language, evidence and enforceability of the resulting judgment or award can materially change the decision.
Contract Language, Authority and Signature
A bilingual contract should state which language prevails if the versions conflict. The signatory’s authority must also be verified through powers, corporate resolutions and registry information. A valid electronic signature can prove identity and integrity, but the surrounding approval process still matters.
Price, Payment and Tax Treatment
Payment clauses should address currency, VAT, withholding, invoicing, due dates, interest, set-off and disputed amounts. For a cross-border group, the agreement must also be consistent with transfer pricing and the actual allocation of functions and risks.
This is where Lawants’ integrated model becomes relevant. A commercially attractive clause can create a tax or compliance problem if it is reviewed in isolation.
Termination, Liability and Dispute Resolution
The contract should distinguish ordinary expiry, termination for breach and termination without cause. It should define notice, cure periods, consequences, indemnities, surviving obligations and return of information or stock.
Liability caps, exclusions, force majeure and hardship clauses require precise drafting. Arbitration can provide a neutral forum for international relationships, but it is not automatically faster or better for every claim. The dispute clause should be selected for the transaction, not inserted as boilerplate.
Lawants obtained the first recognition in Spain of an Italian irritual arbitral award, valued at €5.5 million, in a case reported by Il Sole 24 Ore. Contract drafting and enforcement are different stages, but the enforceability of the final outcome should be considered from the beginning.
The case illustrates a broader point: a foreign company should not wait until a dispute arises to discover whether its notice, jurisdiction, arbitration or evidence clauses work under the Spanish framework.
Accounting and Record-Keeping Obligations in Spain
The Commercial Code remains especially important for business accounting and record retention. These duties support tax compliance, corporate reporting and evidence in a dispute, but they are not identical to any of those functions.
The three-month, six-month and one-month deadlines for capital companies come from the Companies Act, while the four-month book-legalisation deadline and six-year retention rule form part of the wider commercial accounting framework. Treating them as one filing deadline is inaccurate.
For foreign groups, local records should also reconcile with the parent company’s reporting. Lawants combines Spanish bookkeeping and compliance with reporting designed around the needs of the foreign head office, reducing fragmentation between the legal, accounting and tax records.
What the Spanish Commercial Code Does Not Regulate Alone
The Code’s age is not itself the problem. The practical difficulty is that later legislation has removed or supplemented many subjects, so an apparently relevant article may no longer provide the complete rule.
- Capital companies: S.L. and S.A. formation, governance and dissolution are principally governed by the Capital Companies Act.
- Insolvency: restructuring and insolvency proceedings are governed by the consolidated Insolvency Act.
- Maritime trade: much of the former maritime book was repealed by the Maritime Navigation Act.
- Electronic commerce: online information duties and digital services are governed by specific Spanish and EU rules.
- Consumer contracts: mandatory consumer protections cannot be inferred from the Commercial Code alone.
- Competition and data: restrictive practices, unfair competition and personal data have separate legal frameworks.
The safe approach is not to search for one all-purpose “commercial law”. It is to map the transaction and then identify the statutes, contractual rules and mandatory protections attached to it.
How Lawants Supports Foreign Businesses Under Spanish Commercial Law
Lawants works exclusively with foreign companies and international investors operating in Spain. Its role is to connect the legal rule with the commercial model, tax position and compliance process the client will actually use.
The same point of contact can coordinate contract advice, invoicing and tax treatment, corporate authority, record keeping and any resulting dispute. This avoids the common situation in which several advisers provide individually correct answers that do not form one workable strategy.
A contract should work before, during and after the business relationship
Lawants reviews the legal framework, commercial objective, tax consequences and enforcement route as one matter. The relationship does not end when a document is signed: the same team can support performance, compliance, negotiation and disputes as the business develops in Spain.

Frequently Asked Questions About the Spanish Commercial Code
These answers clarify the scope of the Code and its relationship with modern Spanish commercial and contract law.
What is the Spanish Commercial Code?
It is the Código de Comercio published by Royal Decree of 22 August 1885. It remains in force as amended, but many original subjects are now governed by later special legislation.
Is the 1885 Spanish Commercial Code still in force?
Yes. The consolidated Code remains in force, although many provisions have been repealed or supplemented. The proposed new Mercantile Code has not replaced it.
What is the difference between the Commercial Code and the Civil Code in Spain?
The Civil Code contains the general law of obligations and contracts. The Commercial Code adds rules for merchants, acts of commerce and certain commercial obligations. Special laws can take priority over both.
Does the Spanish Commercial Code regulate S.L. and S.A. companies?
Not as their principal corporate statute. Spanish S.L. and S.A. companies are mainly governed by the Capital Companies Act, Royal Legislative Decree 1/2010. Commercial accounting and registry rules may still interact with the Code.
Are commercial contracts required to be in writing in Spain?
Not always. Many contracts can be binding regardless of form when the essential validity requirements are met. A written or public form is mandatory for particular transactions, and written evidence is usually essential in a commercial dispute.
Which law governs an international commercial contract in Spain?
It depends on the parties’ valid choice of law, EU conflict rules, mandatory provisions and any applicable international convention. Jurisdiction and governing law must be analysed separately.
How long must business records be retained in Spain?
The Commercial Code generally requires books, correspondence, documentation and supporting records to be kept for six years from the last entry. Other laws may require different or longer periods for specific documents.





