Civil Code, Commercial Code, and EU Law: The Sources That Govern Every Contract in Spain
Every business deal in Spain starts with a contract. Whether you’re opening a subsidiary, appointing a local agent, signing a supply agreement, or acquiring a Spanish company, understanding how Spanish contract law works — from the moment negotiations begin to the moment you enforce your rights in court — is not optional. It is the foundation of doing business safely. Spanish contract law is rooted in the Civil Code of 1889, but it has evolved considerably through Supreme Court (Tribunal Supremo) interpretation and EU law. Several proposals to reform the Civil Code have failed, yet the law has quietly updated itself through decades of case law. The result is a system that rewards those who know its rules — and surprises those who don’t. This guide is written for international companies, entrepreneurs, and investors operating in Spain or planning to do so. It covers everything you need to know: how contracts are formed, what makes them valid, which types are most relevant for your business, how to enforce them, and what to do when things go wrong.

The Legal Framework Behind Spanish Contract Law
Spanish contract law does not rest on a single statute. It is built on a layered system of sources that interact — and sometimes conflict. For anyone doing business in Spain, understanding which rules apply and where they come from is the starting point for any sound contractual strategy.
The primary sources are:
- The Spanish Civil Code (Código Civil, 1889) — the foundational source for general contract law, governing formation, validity, interpretation, performance, and breach. Despite its age, it remains in force and largely unreformed at a structural level.
- The Commercial Code (Código de Comercio, 1885) — applies to commercial contracts between merchants (actos de comercio), including sale of goods, agency, and certain financing arrangements. Where the Commercial Code is silent, the Civil Code applies subsidiarily.
- EU legislation and directives — a growing body of EU law directly affects contracts in Spain, particularly in consumer protection (Unfair Contract Terms Directive), financial services, digital markets, and electronic commerce. EU rules take precedence over national law.
- Tribunal Supremo case law — while Spain follows a civil law tradition where case law is not formally binding, reiterated judgments of the Supreme Court (two or more rulings with the same ratio decidendi) complement the legal system under Article 1(6) of the Civil Code. In practice, Supreme Court doctrine shapes how contract rules are applied and has introduced principles not expressly written in the Code, such as the hardship doctrine (rebus sic stantibus) and the binding effect of pre-contractual representations.
- Sector-specific legislation — certain types of contracts are governed by dedicated laws: the Commercial Agency Act (Ley 12/1992), the Urban Leases Act (Ley 29/1994), the Arbitration Act (Ley 60/2003), and others.
- Regional civil law (derecho foral) — in certain autonomous communities (Catalonia, the Basque Country, Aragon, Navarre, Galicia, and the Balearic Islands), regional civil codes apply in specific matters and may prevail over the national Civil Code. This is particularly relevant in property and inheritance matters.
Key Principles of Contract Formation in Spain
Two principles sit at the heart of Spanish contract law. The first is freedom of contract (libertad de contratación): under Article 1255 of the Civil Code, parties are free to establish the terms they consider appropriate, provided they do not violate mandatory law, public morality, or public policy. The second is consensualism: contracts in Spain are generally perfected by the mere agreement of the parties, without the need for any particular form. Delivery of goods or payment is not required for a contract to exist — the meeting of minds is enough, subject to the exceptions discussed below.
The Essential Elements of a Valid Contract
Article 1261 of the Civil Code identifies three elements that must coexist for a contract to be valid. In commercial practice, two additional factors — capacity and, in some cases, form — are equally important. Together, these are the five elements of contract formation under Spanish law:
- Consentimiento (Consent) — the free, informed, and mutual agreement of the parties. Consent is vitiated — and the contract potentially voidable — when it is given by mistake (error), under duress (violencia or intimidación), or as a result of fraud (dolo). For example: a German company signs a distribution agreement with a Spanish partner after being provided with deliberately false sales figures. The consent obtained through fraud is not valid consent.
- Objeto (Object) — the thing or service that is the subject matter of the contract. The object must be lawful, possible, and sufficiently determined or determinable. A contract to supply a quantity of goods yet to be specified by reference to an agreed formula is valid; a contract for an impossible or illegal service is not.
- Causa (Cause) — the legal purpose or reason for the contract. In onerous contracts (the most common in commercial contexts), the cause is the consideration each party receives: a seller’s cause is the price; a buyer’s cause is the goods. The cause must be real and lawful. A contract whose real purpose conceals an illegal transaction can be annulled even if its stated cause appears legitimate.
- Capacidad (Capacity) — both parties must have legal capacity to contract. For companies, this means acting through duly authorised representatives. Verifying the authority of the person signing on behalf of a Spanish entity — through the company’s deed of incorporation and powers of attorney registered at the Mercantile Registry — is a practical step that is often overlooked by foreign counterparties.
- Forma (Form) — in most cases, form is not an element of validity under Spanish law. However, for certain contracts (real estate transfers, mortgage deeds, some guarantee arrangements), the law requires a specific form for the contract to be enforceable or to produce full legal effects. This is addressed in detail in the section on formal requirements below.
Offer and Acceptance: How a Contract Comes Into Being in Spain
A contract is formed when a valid offer meets an unqualified acceptance. Under Spanish law, an offer becomes binding on the offeror once it reaches the offeree. Withdrawal is possible before that point, but once received, the offer cannot be revoked if the offeror has committed to keeping it open for a defined period.
If the offeree responds with modifications — changing price, delivery terms, or any other material condition — this constitutes a counteroffer, not an acceptance. The original offer lapses, and the roles reverse: the original offeror must now accept or reject the counteroffer.
A common and practically significant issue in B2B commercial relationships is the “battle of the forms” — the situation where buyer and seller each send their own standard terms and conditions with orders and confirmations, without either party expressly agreeing to the other’s terms. The Spanish Civil Code and Commercial Code are silent on this point. Spanish courts have generally applied the “last shot” doctrine: the set of terms provided last before performance or acceptance of the contract governs. If a supplier ships goods after receiving a purchase order containing the buyer’s standard terms, those terms may be treated as accepted by conduct.
There is, however, an important exception. Where parties have conducted business on the same terms over an extended period, a “course of dealing” may be established. In that case, the terms historically used between them — typically the supplier’s terms — may prevail even if the buyer later attempts to introduce different conditions. Additionally, a supplier can insert a “prevail clause” in its terms stating that its conditions always govern, which Spanish courts will generally enforce provided the other party had the opportunity to read and reject them.
Practical implication: International companies operating in Spain should never assume their standard terms apply simply because they were sent. A clearly drafted prevail clause, combined with a documented acceptance mechanism, is the safest approach.
The Principle of Good Faith in Pre-Contractual Negotiations
Spanish law imposes an obligation of good faith not only in the performance of contracts (Article 1258 Civil Code) but also in the negotiation phase. Article 7 of the Civil Code establishes that all rights must be exercised in accordance with good faith. This means that once negotiations have reached a serious and advanced stage, parties cannot simply walk away without consequence.
If a party abruptly and unjustifiably terminates negotiations — particularly after the other party has invested time, resources, or made decisions in reasonable reliance on the prospect of a deal — the terminating party may face liability under the doctrine of culpa in contrahendo (pre-contractual fault). To succeed in such a claim, the aggrieved party must demonstrate:
- That negotiations had reached a sufficiently advanced stage to generate a legitimate expectation of conclusion;
- That the other party acted in bad faith — for example, continuing negotiations while concealing a decision already made to contract with a third party;
- That the claimant suffered a quantifiable loss as a direct result of the termination;
- A causal link between the bad faith conduct and the damage suffered.
Beyond termination liability, the Tribunal Supremo has developed an important doctrine on the binding effect of pre-contractual representations. Information provided during negotiations — including advertising materials, technical specifications, financial data disclosed in due diligence, and verbal assurances — can, in certain circumstances, become implied terms of the final contract. This happens particularly where there is an information asymmetry between the parties: if one party reasonably relies on representations made by a counterpart who had exclusive or superior access to that information, those representations may be treated as contractually binding even if not reproduced in the signed document. The practical lesson: what is said before signing can matter as much as what is written in the contract.
What Are the Rules of Contract Formation in Spain? A Step-by-Step Guide
For international companies entering contractual relationships in Spain, understanding the procedural steps of contract formation is as important as understanding the substantive rules. The following sequence reflects both the legal requirements and the best practices followed by experienced practitioners.
- Verify the legal capacity and authority of all parties. Before any negotiation begins, confirm that the persons you are dealing with are authorised to bind their organisations. For Spanish companies, check the Mercantile Registry (Registro Mercantil) to verify the company’s legal existence, current registered directors, and the scope of their powers. If a representative is acting under a power of attorney, verify that it is current, sufficiently broad, and — where required — notarised and apostilled.
- Negotiate in good faith. As discussed above, Spanish law imposes a duty of good faith from the outset of negotiations. Keep records of negotiation exchanges. If you provide representations — about product specifications, financial performance, or other material facts — be aware that these may later be treated as contractual commitments.
- Formulate a clear offer. The offer must be sufficiently precise to allow acceptance: it should identify the parties, the subject matter, and the essential terms (price, quantity, delivery, duration). An offer that is too vague may not constitute a valid legal offer under Spanish law and may instead be treated as an invitation to negotiate.
- Obtain an unqualified acceptance. Acceptance must mirror the offer. Any modification — however minor — transforms the response into a counteroffer. For high-value transactions, ensure acceptance is documented in writing and clearly references the offer being accepted, including its date and key terms.
- Comply with any applicable formal requirements. Most commercial contracts in Spain require no particular form. However, certain contracts — including real estate transfers, mortgage deeds, and some company resolutions — must be executed before a Spanish notary (escritura pública) to produce full legal effects or to be registered. Identify whether your contract falls into a category requiring a specific form before execution.
- Register the contract where required. Notarised contracts involving real property must be registered at the Land Registry (Registro de la Propiedad) to be enforceable against third parties. Commercial agency agreements, franchise arrangements, and intellectual property licences may benefit from registration in specialist registries. For company-level agreements (shareholders’ agreements, share transfers), registration at the Mercantile Registry may be required or advisable.
When Is a Written Contract Required in Spain?
One of the most important principles of Spanish contract law — and one that frequently surprises foreign businesses — is that contracts in Spain are generally valid regardless of their form. Article 1278 of the Civil Code establishes that contracts are binding from the moment the essential elements of consent, object, and cause are present, whatever form has been used. A verbal agreement, an exchange of emails, or a signed document are all equally valid in principle.
That said, form matters in practice — for evidentiary purposes, for registration, and in specific categories of contract where the law requires a particular form as a condition of validity or enforceability. The table below sets out the main categories:
Online and Electronic Contracts
Spanish law fully recognises the validity of contracts concluded online and by electronic means. The Law on Information Society Services and Electronic Commerce (LSSI-CE) establishes that where legislation requires a contract to be in writing, that requirement is satisfied by electronic means. No prior agreement between the parties is needed to contract electronically.
For B2B contracts concluded online, the key practical requirement is proper incorporation of terms: the accepting party must have had a genuine opportunity to read and understand the terms before accepting. A link to terms buried in a footer, without a tick-box or other confirmation mechanism, may not be sufficient to demonstrate acceptance in a dispute. Best practice is to use a clear acceptance mechanism (tick-box, explicit “I accept” click) with a timestamp and a stored record of what was accepted and when.
Language Requirements
There is no legal requirement to draft a commercial contract in Spanish. Contracts in English, Italian, French, or any other language are valid in Spain. However, if the contract is ever invoked before a Spanish court or notary, an official certified translation into Spanish will be required. For contracts involving Spanish entities or individuals, drafting in Spanish — or at minimum in a bilingual version — is strongly recommended to avoid translation disputes and ensure that all parties have genuinely understood the terms they signed.
Electronic Signatures
Spain recognises three levels of electronic signature under EU Regulation eIDAS (No 910/2014):
- Simple electronic signature — a basic digital identifier (e.g. a scanned signature or a name typed at the bottom of an email). Valid for most commercial contracts, but carries limited evidentiary weight.
- Advanced electronic signature — uniquely linked to the signatory, capable of identifying them, and created using data under their sole control. Significantly stronger evidentiary value. Widely used in B2B commercial practice.
- Qualified electronic signature — created by a qualified electronic signature creation device and based on a qualified certificate. Legally equivalent to a handwritten signature for all purposes under EU and Spanish law. Required for certain regulated transactions.
Practical note: For high-value or long-term commercial agreements, using at minimum an advanced electronic signature — with timestamping and identity verification — is advisable to ensure enforceability if the counterparty later denies having signed.

Contract Content: What Should Be Included in a Spanish Contract?
Freedom of contract means that parties can largely design their agreement as they see fit. However, a well-drafted Spanish contract should systematically address the following elements — not only to reflect the parties’ intentions accurately, but to minimise the risk of disputes and ensure enforceability:
- Identification of the parties — full legal name, registered address, tax identification number (NIF/NIE/CIF), and the name and authority of the signatory for each party. For Spanish companies, include the Mercantile Registry entry details.
- Object and scope of the contract — a precise description of the goods to be supplied, services to be rendered, or rights to be transferred. Vague object clauses are a common source of disputes. Be specific about quantities, specifications, quality standards, and deliverables.
- Price and payment terms — the agreed consideration, currency, payment schedule, method of payment, and consequences of late payment (interest rate, right to suspend performance). Reference to the applicable late payment legislation (Ley 15/2010 on combating late payment in commercial transactions) is advisable for B2B supply contracts.
- Duration and renewal — fixed term or indefinite; conditions for renewal (automatic or by notice); notice periods for non-renewal or termination.
- Obligations and performance standards — who does what, by when, and to what standard. Include milestones for complex contracts. Specify whether the obligation is of means (obligación de medios) or result (obligación de resultado) — this distinction affects liability significantly.
- Confidentiality — scope of confidential information, duration of the obligation (including post-termination), permitted disclosures, and remedies for breach.
- Limitation of liability — parties are generally free to limit their liability under Spanish law, provided the limitation does not cover wilful misconduct (dolo) or gross negligence. Liability caps, mutual exclusions of consequential loss, and indemnification obligations should be clearly drafted.
- Force majeure — define triggering events, notification obligations, and consequences (suspension, price adjustment, or termination). The Civil Code does not contain a general force majeure clause, making an express contractual provision particularly important.
- Hardship clause — given the Tribunal Supremo’s doctrine on rebus sic stantibus (discussed below), including an express hardship clause that defines the conditions and procedure for renegotiation provides greater certainty than relying on judge-made law.
- Governing law and jurisdiction — for domestic contracts, Spanish law will generally apply. For international contracts, specify the governing law and the competent court or arbitral tribunal. This is one of the most important clauses in any cross-border agreement.
- Dispute resolution — court litigation, arbitration, or mediation? If arbitration, specify the institution, seat, language, and rules. If court litigation, specify the competent court (submission to a particular jurisdiction is permitted under Spanish law).
For international commercial contracts in particular, two clauses deserve special attention. First, the governing law clause: under the Rome I Regulation (EC No 593/2008), parties are generally free to choose the law governing their contract. A clear choice of Spanish law — or a different law, if appropriate — avoids the uncertainty of conflict-of-laws rules. Second, the dispute resolution clause: for high-value cross-border transactions, arbitration (rather than court litigation) often offers practical advantages including neutrality, enforceability of awards under the New York Convention, and confidentiality.
Navigating Spanish contract law requires more than a template. Lawants drafts and reviews commercial contracts across all sectors for international companies operating in Spain — ensuring your agreements are legally sound, commercially clear, and strategically aligned with your objectives. Contact our team for a confidential consultation.
Types of Commercial Contracts Under Spanish Law
Choosing the right contractual structure is not a formality — it is a strategic decision with direct legal and financial consequences. Some contract types in Spain are governed by detailed mandatory legislation that imposes obligations you cannot contract out of, even if both parties agree to do so. Others operate in a regulatory vacuum, leaving everything to the parties’ drafting — which is an opportunity for those who know what to include, and a risk for those who don’t. The table below maps the most commercially relevant contract types for international businesses in Spain.
Two Contracts That Regularly Surprise Foreign Companies: Agency vs. Distribution
Of all the contract types listed above, two stand out as particularly prone to costly surprises for international businesses entering the Spanish market: the commercial agency contract and the exclusive distribution agreement. They are often confused with each other, they serve similar commercial purposes, and yet their legal treatment could not be more different.
Commercial Agency: The Mandatory Indemnity You Cannot Avoid
The commercial agency contract in Spain is governed by Ley 12/1992, which implements the EU Commercial Agents Directive (86/653/EEC). This law is largely mandatory: many of its provisions cannot be waived or modified by contract, even with the agent’s consent.
The most significant mandatory provision — and the one that generates the most disputes — is the indemnización por clientela (client indemnity). When an agency contract is terminated, the agent is entitled to an indemnity if they have brought the principal new customers or significantly increased the volume of business with existing customers, and if the principal continues to derive substantial benefits from this business after termination. This indemnity cannot be excluded by contract. It is calculated on the basis of average annual remuneration over the last five years, capped at that amount.
The client indemnity under Ley 12/1992 is non-waivable. A clause in the agency agreement purporting to exclude or limit it is void. Many foreign companies appoint Spanish commercial agents without realising they will face this cost on termination — regardless of what the contract says. Factor it in from day one.
A further risk is the misclassification of a distribution relationship as agency (or vice versa). If a person described in a contract as a “distributor” or “reseller” is in practice acting as an agent — taking orders on behalf of the principal, not buying goods in their own name, operating with limited pricing autonomy — a Spanish court may requalify the relationship as agency and apply Ley 12/1992 and its mandatory indemnity provisions.
Exclusive Distribution: Freedom, Risk, and the Importance of Good Drafting
Unlike agency, exclusive distribution in Spain has no dedicated legislation. The distributor buys goods in their own name, bears the commercial risk, and resells. The relationship is governed by the general rules of the Civil Code and the Commercial Code, supplemented by trade usage and whatever the parties have agreed in their contract.
This freedom is double-edged. On one hand, there is no mandatory indemnity on termination equivalent to the agency indemnity (although courts have in some circumstances awarded compensation for unjustified termination of long-term distribution agreements where the distributor had invested significantly in the relationship). On the other hand, if the contract is silent on key points, the parties may find themselves in a dispute with no clear legal rule to fall back on.
The clauses that most often generate disputes in distribution agreements include: the scope and territory of exclusivity, minimum purchase obligations and consequences of non-achievement, contract duration and renewal conditions, stock and IP obligations on termination, and post-termination non-compete provisions. All of these must be addressed explicitly and precisely.
Whether you are appointing an agent or a distributor in Spain, the contractual structure you choose has significant long-term financial implications. Lawants advises international companies on the right structure for their Spanish go-to-market strategy and drafts agency and distribution agreements that protect your interests from day one. Get in touch with our team.
The 2-Year Rule and Other Key Time Limits in Spanish Contract Law
One of the most overlooked risks in cross-border contracting is the loss of legal rights through the expiry of limitation or prescription periods. Spanish law sets out a number of time limits that vary significantly depending on the type of claim. Missing a deadline does not just weaken your position — it can extinguish your right to act entirely.
The 2-year rule most commonly referred to in the Spanish context relates to the statutory guarantee for consumer goods: under the transposition of EU Directive 2019/771, consumers are entitled to a two-year guarantee on goods purchased from traders. For B2B contracts, the relevant limitation periods are different — and often significantly shorter than foreign businesses expect, particularly the 6-month period for latent defects actions in commercial sales.
Limitation periods in Spain can be interrupted by a formal demand or legal action, after which the full period recommences. This makes it important to act — or at minimum to send a documented formal notice — before a deadline expires, even if you are still attempting to resolve a dispute amicably.
Contract Enforcement in Spain: Remedies and Legal Actions
When a contract is not performed as agreed, Spanish law provides a structured set of remedies. The starting point is Article 1124 of the Civil Code, which gives the non-defaulting party in a bilateral contract the right to choose between demanding performance or terminating the contract — in both cases with the right to claim damages. Understanding which remedy to pursue, and in what sequence, is a practical question that significantly affects both the outcome and the cost of enforcement.
Specific Performance and Termination
Under Article 1124 of the Civil Code, when one party to a bilateral contract fails to perform its obligations, the other party may elect either to demand specific performance (cumplimiento forzoso) — compelling the defaulting party to fulfil what was agreed — or to terminate the contract (resolución) and claim damages. In practice, the choice depends on the circumstances: if the defaulting party is still capable of performing and performance still has value, specific performance may be preferable. If the breach is fundamental or the delay has made performance pointless, termination is the more effective remedy.
Termination for breach under Article 1124 does not require a court order — the aggrieved party can terminate by a unilateral declaration communicated to the defaulting party. However, if the termination is contested, a court will need to confirm its validity. For this reason, it is standard practice in Spain to send a formal demand (requerimiento) before terminating, documenting the breach and giving the other party a reasonable opportunity to remedy it. This step is not legally required in all cases, but it strengthens the terminating party’s position in any subsequent litigation.
A practical example: an Italian company contracts with a Spanish manufacturer for the supply of 500 units of custom-produced machinery, to be delivered by a specified date. The manufacturer delivers 200 units six weeks late and advises that the remaining units will not be ready for another four months. The Italian company can elect to terminate the contract for fundamental breach, claim restitution of any advance payments made, and sue for the additional cost of sourcing the machinery elsewhere (cover damages) plus any consequential losses.
Damages and Compensation
The right to damages for breach of contract is governed by Articles 1101 to 1107 of the Civil Code. A party that fails to perform its contractual obligations — whether through non-performance, defective performance, or delay — is liable for the losses caused to the other party, subject to the following framework:
- Daño emergente (actual loss) — direct losses actually suffered as a result of the breach: costs incurred, payments made for nothing, expenses of obtaining substitute performance.
- Lucro cesante (loss of profit) — profits that the claimant would have made had the contract been performed. This category is often contested and requires clear evidence of lost business opportunities.
- Foreseeability — for non-intentional breach, compensation is limited to losses that were foreseeable at the time the contract was concluded (Art. 1107 CC). For wilful breach (dolo), all losses flowing from the breach are recoverable, including those that were not foreseeable.
- Contractual penalty clauses (cláusulas penales) — parties may agree in advance on a fixed sum payable in the event of breach or delay. Spanish courts have the power to reduce a penalty clause that is disproportionate (Art. 1154 CC). A well-calibrated penalty clause avoids the need to prove actual loss and simplifies enforcement.
Challenging a Contract: Nullity, Voidability and Rescission
Not all contract disputes are about breach. In some cases, a party may wish to challenge the validity of the contract itself — either because it was never properly formed or because something went wrong at the time of conclusion. Spanish law distinguishes between three mechanisms:
A practical example of voidability: a French investor acquires shares in a Spanish company after the seller presents audited accounts that materially misrepresent the company’s financial position. The investor was induced to contract by the seller’s fraud (dolo). The investor has four years from the date of discovery to bring an action for annulment and restitution of the purchase price.
Hardship and the Rebus Sic Stantibus Doctrine
The Spanish Civil Code contains no general hardship clause — no provision that allows a party to seek contract adaptation or termination because unforeseen circumstances have made performance excessively burdensome. Yet the Tribunal Supremo has developed precisely such a doctrine through decades of case law, grounded in good faith (Article 1258 CC) and the implied condition that parties are bound to their agreement as long as circumstances remain substantially the same: rebus sic stantibus.
For the doctrine to apply, three cumulative requirements must be met:
- An extraordinary and unforeseeable supervening event — the event must occur after the contract was concluded, be outside the parties’ sphere of control, and be one that the parties could not reasonably have anticipated. The doctrine is applied restrictively: normal market fluctuations, foreseeable economic cycles, and risks that one party expressly assumed in the contract do not qualify.
- An excessive imbalance in the parties’ performances — the event must cause a serious and disproportionate increase in the burden of performance for one party, not merely inconvenience or reduced profitability.
- A causal link between the event and the imbalance — the excessive onerosity must be a direct consequence of the supervening event, not of pre-existing conditions or the party’s own decisions.
Where these conditions are met, the Tribunal Supremo may order adaptation of the contract to restore balance, or — where adaptation is not possible — termination. The COVID-19 pandemic generated significant litigation under this doctrine, with courts characterising it as an “exceptional situation of exorbitant magnitude” — though definitive Supreme Court guidance on its application to specific contract types is still emerging.
Do not rely on judge-made hardship law to protect your position in long-term contracts. Include an express hardship clause that defines triggering events, notification obligations, and the renegotiation or termination procedure. This gives you contractual certainty rather than dependence on judicial discretion.
Enforcing Contracts Through the Spanish Courts
When out-of-court resolution fails, Spanish law provides a structured judicial system for contract enforcement. Understanding which court to approach and which procedure to use is not merely a procedural matter — it directly affects cost, speed, and the likelihood of recovery.
One procedure deserves particular attention for international creditors: the procedimiento monitorio. This is a fast-track payment order procedure available for any liquid, documented debt — supported by an invoice, signed contract, delivery note, or equivalent document — regardless of amount. The debtor has 20 days to pay or oppose. If they do not respond, the court issues an execution order without any hearing. If they oppose, the case converts to ordinary civil proceedings. For straightforward debt recovery against Spanish debtors, this is often the most cost-effective first step.
A significant practical caveat: Spanish civil courts are slow. Average first-instance proceedings in complex commercial cases can take two to three years, with appeal adding further time. This makes pre-litigation strategy — formal demands, interim measures, and alternative dispute resolution — particularly important in the Spanish context.
Arbitration and Alternative Dispute Resolution in Spain
Given the well-known delays in the Spanish court system, arbitration and mediation have become increasingly important tools for resolving commercial disputes efficiently. For international contracts in particular, they offer significant advantages over court litigation.
Spanish arbitration is governed by Ley 60/2003 de Arbitraje, which closely follows the UNCITRAL Model Law. Key features of the Spanish arbitration framework include:
- Broad arbitrability — any dispute involving matters of free disposition (i.e. rights that parties can waive or transfer) can be submitted to arbitration. Most commercial disputes qualify.
- Freedom of procedure — parties can choose the rules, language, seat, and number of arbitrators. Institutional arbitration (administered by an institution) and ad hoc arbitration (governed only by the parties’ agreement and the Arbitration Act) are both available.
- New York Convention — Spain ratified the 1958 Convention on the Recognition and Enforcement of Foreign Arbitral Awards. Awards rendered in over 170 contracting states are enforceable in Spain, and Spanish awards are enforceable abroad under the same framework. This is a critical advantage for international contracts.
- Court support — Spanish courts actively support arbitration: they will enforce arbitration agreements by declining jurisdiction, order interim measures in support of arbitral proceedings, and enforce awards through a simplified exequatur procedure.
The principal arbitral institutions in Spain are:
- Corte de Arbitraje de la Cámara de Comercio de Madrid (CAM) — one of the most established institutions, widely used for domestic and international disputes.
- Corte de Arbitraje de Barcelona (CAB) — particularly active in Catalan and Mediterranean commercial disputes.
- CIMA (Corte de Arbitraje para el Arbitraje Internacional) — specialised in international commercial arbitration.
- For truly international disputes, parties frequently choose the ICC (International Chamber of Commerce) or the LCIA, with a seat in a neutral jurisdiction, even where the underlying contract is governed by Spanish law.
For an arbitration clause to be valid and enforceable under Spanish law and the New York Convention, it must be in writing (or evidenced in writing), identify the subject matter of the disputes to be referred, and constitute a genuine agreement between the parties. A vague clause referring generically to “disputes” without specifying the arbitral mechanism is likely to generate satellite litigation over the clause itself before the merits are ever reached.
On the question of arbitration and international sales contracts: where a contract is governed by the CISG (UN Convention on Contracts for the International Sale of Goods), there is an important interaction between the CISG’s freedom-of-form principle for contracts and the New York Convention’s written-form requirement for arbitration agreements. Spanish courts have addressed this issue, with some decisions applying the CISG’s less formalistic approach to validate arbitration clauses that were not expressly signed by both parties. This remains an area of some uncertainty, and the safest approach is always to include a clearly signed, standalone arbitration clause.
Cross-Border Contracts and Private International Law
For companies contracting across borders — whether a German company supplying goods to a Spanish buyer, an Italian investor acquiring Spanish real estate, or a British group establishing a Spanish subsidiary — the question of which law governs the contract and which court has jurisdiction is not abstract. It can determine everything from the available remedies to the enforceability of limitation clauses.
A practical note on the CISG: many international businesses are unaware that the Vienna Convention on Contracts for the International Sale of Goods applies automatically to their transactions when both parties are based in contracting states (which include Spain, Italy, Germany, France, China, the US, and most major trading nations). The CISG differs from Spanish domestic sales law in important ways — including on formation, remedies, and the notice requirements for defective goods. If you want Spanish Civil Code rules to apply to your international sales contracts, an explicit opt-out of the CISG is required.
How Lawants Helps You Navigate Spanish Contract Law
Spanish contract law rewards preparation. Whether you are entering a new market, appointing a commercial agent, acquiring a business, or dealing with a counterparty that is not performing, having the right legal support in place makes the difference between a business relationship that works and one that becomes a liability.
Lawants is a multidisciplinary firm of lawyers, tax advisers, and labour consultants with deep expertise in Spanish law and a practice built around the needs of international companies and investors. We work daily with businesses from across Europe, the Americas, and Asia that operate in Spain — and we understand what foreign clients need: clear advice, a proactive approach, and professionals who grasp both the Spanish legal system and the commercial realities of operating across borders.
Our contract law services include:
- Drafting and review of commercial contracts — supply agreements, service contracts, distribution and agency agreements, NDAs, shareholder agreements, technology licences, and more. We draft in Spanish, English, and Italian, and advise on the strategic implications of each clause — not just their formal legality.
- Pre-contractual advice and negotiation support — structuring the deal, identifying the risks in counterparty proposals, and advising on negotiation strategy before you sign.
- Contract structuring for market entry — helping international companies choose the right contractual model for Spain: direct sales, distribution, agency, franchise, or subsidiary. The choice has significant legal and tax implications.
- Enforcement and dispute resolution — when a counterparty does not perform, we advise on the most effective enforcement strategy: formal demands, interim measures, court proceedings, or arbitration. We litigate before Spanish civil and commercial courts and represent clients in domestic and international arbitration.
- Contract due diligence — reviewing existing contracts in the context of M&A transactions, corporate restructurings, or regulatory compliance reviews.
- Ongoing contract management — supporting in-house teams with Spanish law questions as they arise, without the need for a dedicated local legal department.
If you are doing business in Spain — or planning to — the time to get your contracts right is before you sign, not after a dispute arises. Contact Lawants for a confidential consultation with our contract specialists in Spain.
Frequently Asked Questions About Contract Law in Spain
What are the 5 steps of contract formation in Spain?
Under Spanish law, the key steps in forming a valid contract are: (1) verifying the legal capacity and authority of both parties; (2) negotiating in good faith, with awareness that pre-contractual representations may become binding; (3) making a precise offer that identifies the essential terms; (4) obtaining an unqualified acceptance that mirrors the offer; and (5) complying with any applicable formal requirements — such as notarisation for real estate or share transfers. Most commercial contracts require no special form, but written documentation is always advisable for evidentiary purposes.
Does a contract in Spain need to be in writing?
Not as a general rule. The Spanish Civil Code adopts the principle of freedom of form: contracts are binding from the moment the essential elements of consent, object, and cause are present, regardless of whether they are oral, written, or electronic. However, certain contracts — including real estate transfers, mortgage deeds, and share transfers in limited liability companies — must be executed before a Spanish notary to be registered and fully enforceable against third parties. For all other contracts, written form is not required for validity but is strongly recommended to avoid evidentiary problems.
What is the general limitation period for contract claims in Spain?
The general limitation period for personal actions — including most breach of contract claims — is five years under Article 1964 of the Civil Code, following the 2015 reform that reduced the previous fifteen-year period. However, shorter periods apply to specific categories: six months for latent defects in commercial sales, one year for agency client indemnity claims, and four years for voidability actions based on vices of consent. Limitation periods can be interrupted by a formal demand, after which the full period recommences.
What is the 2-year rule in Spain?
The two-year rule most commonly referred to in the Spanish context is the statutory guarantee period for consumer goods: under the transposition of EU Directive 2019/771, consumers are entitled to a minimum two-year legal guarantee on goods purchased from traders. During this period, the seller is responsible for any lack of conformity that existed at the time of delivery. This rule applies to B2C transactions. In B2B commercial sales, different rules apply — notably the six-month limitation period for latent defects actions under the Civil Code.
Can a contract be signed online in Spain?
Yes. Spanish law fully recognises contracts concluded online and by electronic means. The Law on Information Society Services (LSSI-CE) provides that where legislation requires written form, an electronic format satisfies that requirement. Electronic signatures are valid at three levels — simple, advanced, and qualified — under the EU eIDAS Regulation. For high-value transactions, an advanced or qualified electronic signature with identity verification and timestamping provides the strongest evidentiary foundation.
What happens if a contract is breached in Spain?
When a contract is breached, the non-defaulting party has two primary options under Article 1124 of the Civil Code: demand specific performance (compel the other party to fulfil their obligations) or terminate the contract — in both cases with the right to claim damages covering actual losses and lost profits. In practice, the first step is usually a formal written demand (requerimiento) documenting the breach and requesting remedy. If the breach is not remedied, court proceedings or arbitration can be initiated. Interim measures — including preventive attachment of assets — are available where there is urgency.
What is the difference between a commercial agency and a distribution contract in Spain?
A commercial agent acts on behalf of the principal, concluding contracts in the principal’s name or bringing customers to the principal, without taking ownership of goods. Agents are protected by Ley 12/1992, which grants them a mandatory client indemnity on termination that cannot be contractually excluded. A distributor, by contrast, buys goods in their own name and resells them, bearing the commercial risk themselves. Distribution in Spain has no dedicated legislation and is governed by the general rules of the Civil Code. There is no automatic indemnity on termination, but the contract must be carefully drafted to address termination, exclusivity, and post-contractual obligations.
Is the commercial agent’s indemnity always mandatory in Spain?
Yes, with limited exceptions. The client indemnity (indemnización por clientela) under Article 28 of Ley 12/1992 is payable on termination of an agency contract if the agent has brought new clients or significantly increased business with existing ones, and if the principal continues to benefit from this business. The indemnity is capped at the equivalent of one year’s average annual remuneration over the last five years. This right is non-waivable and cannot be excluded by contract — any clause purporting to do so is void. The only exceptions apply where the agent themselves has terminated the contract without justified cause, or where the contract has been terminated due to the agent’s breach.
Does the CISG apply to contracts with Spanish companies?
Yes, Spain is a contracting state to the United Nations Convention on Contracts for the International Sale of Goods (CISG, Vienna 1980). The CISG applies automatically to international sales of goods between parties whose places of business are in different contracting states, unless the parties expressly exclude it. The CISG differs from Spanish domestic sales law in a number of respects — including on contract formation (freedom of form), the buyer’s obligation to inspect goods and give notice of defects, and the available remedies. If you want the Spanish Civil Code (rather than the CISG) to govern your international sales contracts, an explicit opt-out clause is required.
Is arbitration enforceable in Spain?
Yes. Spain ratified the New York Convention on the Recognition and Enforcement of Foreign Arbitral Awards in 1977. Foreign arbitral awards are enforceable in Spain through exequatur proceedings, and Spanish courts are generally pro-arbitration. Domestic arbitration is governed by Ley 60/2003, which follows the UNCITRAL Model Law. A valid arbitration clause in a commercial contract will be respected by Spanish courts, which will decline jurisdiction in favour of the agreed arbitral forum. For international contracts, a well-drafted arbitration clause administered by a recognised institution (ICC, LCIA, CAM, CIMA) is one of the most effective tools for dispute resolution.
Do I need a Spanish lawyer to draft a contract in Spain?
There is no legal requirement to use a Spanish lawyer to draft a commercial contract. However, given the complexity of Spanish contract law — its mandatory rules, the gaps left by unregulated contract types, the specific formal requirements for certain transactions, and the evidentiary standards of Spanish courts — professional legal advice is a practical necessity for any contract of commercial significance. A contract drafted without knowledge of Spanish law may be valid in form but fail to protect your interests in the areas that matter: limitation of liability, termination rights, indemnity obligations, and dispute resolution. For contracts involving Spanish counterparties, Lawants provides advice in English, Italian, and Spanish.
Conclusion
Spanish contract law is a sophisticated system that offers considerable flexibility to commercial parties — but it also contains a number of rules that can produce unexpected results for those who are not familiar with it. The mandatory indemnity for commercial agents that cannot be contracted away. The short six-month limitation period for latent defects in commercial sales. The last-shot doctrine in battle-of-the-forms disputes. The hardship doctrine that can allow a court to rewrite a long-term contract. The pre-contractual representations that may become binding terms without being written into the final document.
None of these rules are obscure. They are well-established features of the Spanish legal landscape. But they are different from the rules that international companies encounter in their home jurisdictions — and that difference is where the risk lies.
Understanding contract formation and enforcement in Spain is not just a legal exercise. It is a business protection exercise. The companies that operate most effectively in Spain are those that invest in getting their contractual foundations right from the start: choosing the right contract structure, drafting with precision, and knowing their options when a relationship does not go as planned.
Lawants is here to provide that foundation. Our team of contract lawyers and specialists in Spain works with international businesses across all sectors to ensure that every agreement is legally sound, commercially clear, and built to last. Contact us to discuss your needs.






