Complete Legal Guide to Buying Property in Spain as a Foreigner (2026)

Buying property in Spain is one of the most significant financial decisions you'll make—and when you're doing it in a foreign country, the stakes are even higher.

Every year, thousands of international buyers purchase homes on Spain's Costa del Sol, drawn by the Mediterranean lifestyle, favorable climate, and strong property market. But behind every successful purchase is a thorough legal process that protects your investment from hidden debts, planning violations, and contractual problems that could cost you tens of thousands of euros.

I've been on both sides of these transactions. Before becoming a lawyer, I worked in real estate on the Costa del Sol, helping international clients find their dream properties. I saw brilliant purchases and I saw disasters—buyers who discovered illegal extensions after signing, hidden debts that transferred to them, and properties they couldn't legally sell because of urban planning issues.

That's why I specialized in property law for international buyers. This guide walks you through the complete legal process, from initial research to final registration, so you can purchase with confidence.

1. Why You Need Independent Legal Representation

Let's address this immediately: you need your own lawyer.

Many international buyers assume the real estate agent will protect their interests. This is a critical mistake.

The Conflict of Interest

Real estate agents work for the seller. Even if they seem helpful and friendly (and many genuinely are), their legal and financial obligation is to complete the transaction and earn their commission.

Their job is to protect the seller's interests and ensure the sale goes through.

You need someone whose only job is to protect YOU.

An independent lawyer:

  • Has no financial incentive to rush you through the purchase

  • Will flag problems even if it delays or cancels the transaction

  • Answers only to you, not to agents or sellers

  • Can negotiate contract terms in your favor

The Real Cost of Mistakes

  • I've seen buyers discover after completion:

  • Unpaid community fees that became their responsibility

  • Illegal extensions that required big cost to legalize (or demolish)

  • Properties built on protected land that cannot be sold or passed to heirs

  • Contracts with penalty clauses costing 30% of the purchase price if they withdrew

These weren't budget properties. These were €400,000-€800,000 purchases where buyers thought "it's all handled" and skipped independent legal review.

Your legal fees (typically 1% of purchase price) are not an expense—they're insurance against catastrophic losses.

2. Legal Requirements Before You Start

Before you even view properties seriously, you need two essential documents.

NIE Number (Número de Identificación de Extranjero)

The NIE is your Spanish tax identification number. You cannot purchase property, open a bank account, or sign contracts without it.

Application Process:

  • Apply at Spanish Consulate in your home country, or

  • Apply in Spain at a foreigner's office (Oficina de Extranjeros), or

  • Grant Power of Attorney to a lawyer in Spain to obtain it for you

Timeline: 4-8 weeks if applying from abroad; 2-4 weeks if applying in Spain

My recommendation: Start the NIE application before you even travel to view properties. This avoids rushing the process later.

Spanish Bank Account

Spanish property transactions require a Spanish bank account for:

  • Receiving mortgage funds (if applicable)

  • Paying purchase taxes and fees

  • Setting up direct debits for utilities and community fees

  • Demonstrating financial capacity

Non-resident accounts are straightforward to open but require:

  • Valid passport

  • NIE number

  • Proof of address in your home country

Some Spanish banks have international departments that work in English and can guide you through the process.

Choosing Your Lawyer Early

Don't wait until you've found a property to engage a lawyer.

Contact a lawyer before you make any offers so they can:

  • Advise on the local market and typical contract terms

  • Be ready to act quickly when you find a property (good properties move fast)

  • Provide preliminary advice on your specific situation (tax residency, inheritance planning, etc.)

3. The Property Search and Initial Steps

Working With Real Estate Agents

Most international buyers work through real estate agents, which is perfectly normal. Agents provide valuable market knowledge and access to properties.

However, remember:

  •  Never sign anything the agent gives you without your lawyer reviewing it first

  • Don't accept verbal promises—everything must be in writing

  • Get all property documentation to your lawyer before making an offer

When You Find a Property You Like

Before making any offer, your lawyer should conduct preliminary checks:

  1. Verify ownership - Confirm the seller actually owns the property and has the right to sell

  2. Check for obvious legal issues - Major red flags that would make the property unsellable

  3. Review asking price vs. market value - Ensure you're not overpaying (affects your taxes and mortgage)

These preliminary checks typically take 2-3 days and give you confidence before making an offer.

4. Legal Due Diligence: What Your Lawyer Must Check

This is where your lawyer earns their fee. Proper due diligence is your protection against disaster.

Nota Simple (Land Registry Certificate)

The nota simple is the most important legal document in Spanish property transactions.

It reveals:

  • Current registered owner(s)

  • Exact property boundaries and size

  • Any mortgages, liens, or charges against the property

  • Rights of way or easements

  • Legal restrictions

Your lawyer obtains this directly from the Land Registry (Registro de la Propiedad). It's updated and official.

Red flags to watch:

  • Seller's name doesn't match the registered owner

  • Outstanding mortgages that won't be paid off at completion

  • Third-party rights that could affect your use of the property

  • Size discrepancy between actual property and registered size

 Urban Planning Status (AFO/DAFO Certificate)

This certificate confirms the property complies with urban planning regulations.

Critical information:

  •  Is the property legally built?

  • Are all extensions and modifications properly licensed?

  • Is the property in a protected area with building restrictions?

  • Can the property be sold, inherited, and mortgaged legally?

Why this matters:

I once reviewed a beautiful villa where the seller had added a pool house and extended the main building—both without proper permits. The AFO revealed these were illegal constructions.

Options were:

  • Apply for retroactive legalization

  • Demolish the illegal structures

  • Walk away from the purchase

The buyer walked away. Two months later, the property was still on the market with no mention of the planning issues.

Properties with planning violations are difficult or impossible to sell, mortgage, or pass to heirs.

Debts and Charges

Your lawyer checks for:

  • Community of Owners Debts (IBI - Property Tax)

  • Unpaid community fees transfer to the new owner

  • Check for special assessments (major repairs planned)

Local Taxes

  •  IBI (annual property tax) - verify it's paid and up to date

  • Rubbish collection tax

  • Any local levies

Utility Debts

  • Water, electricity, gas

  • These don't always transfer but can cause problems

Method: Your lawyer requests certificates from the community administrator and local tax office showing zero debt. These must be dated close to completion.

Building Permits and Certificates

If the property was built recently or renovated:

  •  Building licenses (licencia de obras)

  • Occupation certificate (cédula de habitabilidad)

  • First occupation license (licencia de primera ocupación)

If buying off-plan or new construction:

  • Building insurance (seguro decenal) - 10-year structural guarantee

  • Bank guarantees for deposits

  • Developer's legal status and solvency

Energy Performance Certificate

Required by law, this certificate rates the property's energy efficiency (A to G scale).

Not as critical as other checks, but sellers must provide it before sale.

5. The Purchase Contract (Contrato de Arras)

Once due diligence is satisfactory, you sign the arras contract and pay a deposit.

What is the Arras Contract?

The arras is a binding preliminary contract that:

  • Commits both parties to complete the purchase

  • Sets the final purchase price

  • Establishes the completion date

  • Requires a deposit (typically 10% of purchase price)

  • Includes penalty clauses if either party withdraws

This is legally binding. You cannot simply change your mind after signing.

Key Clauses Your Lawyer Should Negotiate

Conditions Precedent (Suspensive Conditions)

These allow you to withdraw without penalty if certain conditions aren't met:

  • "Subject to mortgage approval within 30 days"

  • "Subject to satisfactory review of community minutes for past 3 years"

  • "Subject to AFO certificate confirming legal status"

Without these, you're committed regardless of what's discovered later.

Penalty Clauses

Standard penalty clauses are:

If buyer withdraws: Lose the 10% deposit

If seller withdraws: Return double the deposit (20% of purchase price)

Negotiate for:

  • Lower deposit (5-7% if possible)

  • Ability to withdraw if specific issues are discovered during final checks

  • Clear timelines for seller to resolve any pending issues

Completion Date

  • Typically 30-90 days after signing arras

  • Ensure sufficient time for mortgage approval (if applicable)

  • Consider Spanish holiday periods (August, Christmas, Holy Week)

What's Included in the Sale

Be specific:

  • Furniture and fittings included/excluded

  • Keys to be provided

  • Manuals for appliances, pool equipment, security systems

  • Community access cards, parking remotes

I've mediated disputes over everything from light fixtures to outdoor furniture. List it explicitly in the contract.

Deposit Payment

Never pay the deposit directly to the seller.

Deposit should be paid to:

  1. Your lawyer's client account (safest for you), or

  2. Notary's deposit account, or

  3. Estate agency bonded account (less common)

This protects your money if the sale doesn't complete.

6. Financing and Mortgage (If Applicable)

Non-Resident Mortgages

Spanish banks will lend to non-residents, but terms are stricter than for residents:

Typical terms:

  • Maximum 60-70% loan-to-value (you need 30-40% deposit)

  • Interest rates 1-2% higher than resident mortgages

  • Shorter terms (15-25 years vs. 30 years for residents)

Requirements:

  • NIE number

  • Spanish bank account

  • Proof of income (payslips, tax returns)

  • Proof of other assets

  • Credit report from home country

 Timeline: 4-8 weeks from application to approval

Coordination with purchase: Your arras contract should include mortgage approval as a condition precedent, with enough time for processing.

Mortgage Costs

Budget for:

  • Arrangement fee (0.5-1% of loan amount)

  • Valuation fee (€300-€600)

  • Mortgage registration (notary + land registry fees)

  • Life insurance (usually required)

Total additional costs: 2-3% of loan amount

7. The Notary and Completion (Escritura Pública)

The notary appointment is where ownership transfers. This is the big day.

Role of the Spanish Notary

Important: Spanish notaries are public officials, not lawyers working for you. They:

  • Verify identities of buyer and seller

  • Confirm both parties understand the transaction

  • Read the title deed (escritura) aloud (yes, really)

  • Witness signatures

  • Register the transaction with authorities

They do NOT:

  • Review the contract for fairness

  • Conduct due diligence

  • Negotiate on your behalf

  • Verify the property's physical condition

Your lawyer attends with you to review the escritura one final time and ensure everything agreed is accurately reflected.

What Happens at the Notary

Before the appointment:

  •  Your lawyer reviews the draft escritura (sent 3-5 days before)

  • Confirms all terms match the arras contract

  • Checks the property description is accurate

At the appointment:

  • Both parties present NIE/passport

  • Notary confirms identities

  • Notary reads the escritura (in Spanish, so translation needed)

  • Outstanding balance paid (usually by bank transfer completed that morning)

  • Both parties sign

  • You receive a signed copy (copia simple)

Typical duration: 30-60 minutes for straightforward purchases

Power of Attorney

If you cannot attend the notary in person, you can grant Power of Attorney to your lawyer to sign on your behalf.

This requires:

  • Formal power of attorney document

  • Notarized and apostilled in your home country, or

  • Granted at Spanish Consulate

Timeline: 3-4 weeks to arrange, so plan ahead if you won't be in Spain for completion.

Final Checks on Completion Day

Your lawyer should verify on the morning of completion:

  • No new charges registered against the property

  • Utilities are in working order

  • Property is vacant and in the agreed condition

  • Seller has keys, remotes, documentation ready

If anything is wrong, completion can be postponed. Don't proceed if something major is unresolved.

8. Post-Purchase Formalities

Congratulations—you own Spanish property! But the process isn't quite finished.

Property Registration

Your lawyer submits the signed escritura to the Land Registry to register the property in your name.

Timeline: 2 weeks aprox.

Cost: Included in your completion costs (registration fees paid at notary)

You'll receive: Registered title deed showing you as legal owner

Tax Declarations

If you're non-resident:

Modelo 210 (Non-Resident Income Tax)

  • Annual declaration required even if property is empty

  • Based on deemed rental value (1.1-2% of cadastral value)

  • Due by December 31 each year

  • Penalties for late filing: 50-150% of tax due

Modelo 720 (Foreign Assets Declaration)

  • If you're tax resident in Spain and own assets abroad worth >€50,000

  • One-time declaration (then only if assets increase >€20,000)

  • Severe penalties for non-compliance

Your lawyer or a gestor (tax advisor) should explain which forms apply to you.

Utility Transfers

Transfer contracts to your name:

  •  Electricity

  • Water

  • Gas (if applicable)

  • Internet/phone

Usually handled by your lawyer or gestor.

Spanish Will

Highly recommended for anyone owning Spanish property.

A Spanish will:

  • Covers only your Spanish assets

  • Simplifies inheritance process enormously

  • Prevents Spanish authorities applying Spanish succession law by default

  • Costs €300-€500 to draft

Without a Spanish will, your heirs face:

  • Delays of 12-18 months

  • Higher legal costs

  • Potential application of Spanish forced heirship rules

Make a Spanish will. Your family will thank you.

9. Common Mistakes International Buyers Make

After years on both sides of these transactions, I've seen these mistakes repeatedly.

Mistake 1: Not Understanding What You're Signing

The mistake: Signing documents in Spanish that you don't fully understand, accepting verbal translations from interested parties.

The reality: Contracts are legally binding whether you understood them or not.

The cost: A German buyer signed an arras contract with a penalty clause stating that if he withdrew, he'd forfeit his 10% deposit AND pay an additional 20% of the purchase price (30% total). When he couldn't secure financing, it cost him €135,000 to walk away from a €450,000 purchase.

Mistake 2: Trusting Verbal Promises

The mistake: Accepting the seller's verbal assurance that "the extension is legal" or "those fees will be paid before completion."

The reality: Verbal promises are worthless. Only what's written in the contract matters.

The solution: Everything must be in writing, in the contract, with clear remedies if promises aren't kept.

Mistake 3: Rushing the Process

The mistake: "Someone else is interested in the property, you need to decide now."

The reality: Pressure tactics are common. A legitimate seller won't force you to skip due diligence.

The solution: Take the time you need. If the property is right for you at a fair price, it's worth doing properly. If you lose it because you insisted on proper legal review, it wasn't the right property.

Mistake 4: Paying Cash to "Save Taxes"

The mistake: Seller suggests declaring a lower purchase price on the escritura to reduce your taxes.

The reality: This is illegal (tax fraud), and YOU face the penalties, not the seller:

  • Fines of 50-150% of the undeclared amount

  • Criminal prosecution in serious cases

  • When you sell the property (if you do so), you will be required to pay higher taxes on the capital gain. The applicable tax rates are significantly higher

You'll pay MORE tax when selling than you "saved" when buying.

Never agree to under-declare the purchase price.

10. Why Costa del Sol Properties Require Local Expertise

The Costa del Sol—has specific characteristics that generic Spanish property advice doesn't cover.

Urban Planning Complexity

Málaga city: More regulated, fewer planning issues, faster registry process

Marbella & environs: Higher incidence of planning violations from the construction boom years

Rural properties (campo): Different rules for agricultural land, building restrictions, water rights

Market Variations

  • Málaga capital: Growing market, tech hub, younger buyers, apartments dominating

  • Marbella/Puerto Banús: Luxury market, international buyers, villas and high-end apartments

  • Nerja/Torrox: British and Scandinavian buyers, more relaxed market

  • Estepona: Rising market, mix of nationalities, good value

Community of Owners Issues

Large developments (urbanizaciones) on Costa del Sol sometimes have:

  • Ongoing legal disputes

  • Incomplete common areas

  • Developer still involved (not always good)

  • High community fees for facilities (pools, security, gardens)

Your lawyer must review 3 years of community minutes to spot patterns of:

  • Recurring unpaid fees by multiple owners

  • Disputes with developers or contractors

  • Major repairs being discussed but not budgeted

11. Timeline: From Offer to Completion

Typical timeline for Costa del Sol property purchase:

Week 1-2:

  • Make offer

  • Preliminary legal checks

  • Negotiate price

Week 3:

  • Sign arras contract

  • Pay deposit (10%)

  • Begin full due diligence

 Week 4-6:

  • Complete due diligence

  • Mortgage application (if needed)

  • Review community documentation

Week 7-8:

  • Mortgage approved (if applicable)

  • Review draft escritura

  • Arrange power of attorney (if not attending)

Week 9-10:

  • Final checks

  • Notary appointment

  • Completion and payment

Total: 10-12 weeks typical

Factors that extend timeline:

  • Complex due diligence issues requiring seller resolution

  • Mortgage application delays

  • August (many offices closed for 2-3 weeks)

  • Christmas/New Year period

12. Total Costs: What to Budget

Beyond the purchase price, budget for:

One-Time Costs

  • Legal Fees: 1% aprox. of purchase price.

  • Transfer Tax (ITP): 6-10% of purchase price (second-hand property) OR

  • VAT + AJD: 10% + 1.5% (new build property)

  • Notary Fees: €600-€1,200 (depends on property value)

  • Land Registry: €400-€800

  • NIE Application: €250 (if using lawyer)

  • Bank Account Opening: Usually free if opening with property purchase

  • Translation Services: €100-€300 if needed for documents

  • Survey (if desired): €300-€600

  • Total one-time costs: 11-13% of purchase price

  • Ongoing Annual Costs

  • IBI (Property Tax): 0.4-1.1% of cadastral value annually

  • Community Fees: €500-€3,000+ annually (depends on facilities)

  • Utilities: €1,000-€2,000 annually

  • Home Insurance: €300-€600 annually

  • Non-Resident Income Tax: ~€500-€1,500 annually

Conclusion: The Key to a Successful Purchase

Buying property in Spain as a foreigner is straightforward when you have proper legal guidance and take the process seriously.

The essential elements: 

  1. Engage an independent lawyer early - before you fall in love with a property

  2. Never skip due diligence - it's your only protection against hidden problems

  3. Understand what you're signing - every clause matters

  4. Don't rush - legitimate sellers and properties can wait for proper process

  5. Get everything in writing - verbal promises have zero value

The Costa del Sol property market is strong, transparent, and welcoming to international buyers. Thousands of successful purchases happen every year.

The difference between a successful purchase and a costly mistake is usually proper legal guidance at the right time.

Next Steps: How We Can Help

At A | AGUILERA- Legal Advisory, we specialize in guiding international buyers through Spanish property purchases in Málaga and Costa del Sol.

What makes us different:

  • I worked in real estate before law—I understand both the commercial and legal sides

  • We communicate clearly in English, Spanish, and Chinese

  • We provide fixed-price fees so you know costs upfront

  • You work directly with me throughout the process, not junior staff

Our service includes:

  • Complete legal due diligence

  • Contract review and negotiation

  • Notary attendance and representation

  • Post-completion support (registration, taxes, utilities)

  • Spanish will drafting

  • Ongoing advice for non-resident property owners

Contact us for a no-obligation consultation

We're based in Málaga and serve international buyers across Costa del Sol.

Related Articles:

  • Legal Due Diligence Checklist for Property Purchase in Spain

  • Common Legal Mistakes International Buyers Make (And How to Avoid Them)

  • NIE Number Spain: Complete Application Guide

  • Understanding Nota Simple: Reading Your Spanish Land Registry Certificate

 

“This article is for informational purposes only and does not constitute legal advice. Every property purchase is unique, and you should consult with a qualified Spanish property lawyer regarding your specific situation.”

Last updated: February 2026

Previous
Previous

Beckham Law and Property Purchase in Spain.