The question every buyer asks. "If I take over a café, shop or workshop in Spain, do the previous owner's unpaid taxes and Social Security contributions become mine?" The uncomfortable answer, for an ordinary business transfer, is often yes — by statute, not by fraud. Spain has two separate public creditors, each with its own rule, and each can reach a new owner who continues the activity.
1 · The tax office (Hacienda)
Whoever succeeds in the ownership or the running of an economic activity answers for the previous holder's tax debts arising from that activity. Article 42.1.c of the General Tax Law (Ley 58/2003):
«Las que sucedan por cualquier concepto en la titularidad o ejercicio de explotaciones o actividades económicas, por las obligaciones tributarias contraídas del anterior titular y derivadas de su ejercicio. […] Cuando resulte de aplicación lo previsto en el apartado 2 del artículo 175 de esta ley, la responsabilidad establecida en este párrafo se limitará de acuerdo con lo dispuesto en dicho artículo. Cuando no se haya solicitado dicho certificado, la responsabilidad alcanzará también a las sanciones […] Lo dispuesto en el párrafo anterior no será aplicable a los adquirentes de elementos aislados, salvo que dichas adquisiciones […] permitan la continuación de la explotación o actividad.»
— Art. 42.1.c) Ley 58/2003 General Tributaria · BOE consolidated text, retrieved 9 Jul 2026. Unofficial translation: those who succeed, on any basis, in the ownership or exercise of an economic activity are liable for the previous holder's tax obligations arising from that activity; the liability is limited if the Art. 175.2 certificate is requested, and if it is not requested it extends to penalties too; it does not apply to buyers of isolated assets unless the purchase lets the activity continue.
2 · Social Security (Tesorería General)
Social Security is a separate creditor with its own paperwork — a clean tax certificate does not cover it — and the succession liability reaches the whole of the pre-transfer debt, unpaid contributions included. Article 142.1 of the General Social Security Law (RDLeg 8/2015), which extends the successor liability of Art. 168:
«La responsabilidad solidaria por sucesión en la titularidad de la explotación, industria o negocio que se establece en el […] artículo 168 se extiende a la totalidad de las deudas generadas con anterioridad al hecho de la sucesión.»
— Art. 142.1 RDLeg 8/2015, Ley General de la Seguridad Social · BOE consolidated text, retrieved 9 Jul 2026. Unofficial translation: the joint-and-several successor liability set out in Art. 168 (transfer of the ownership of the business) extends to the totality of the debts generated before the succession — the previous owner's unpaid Social Security debts, contributions included.
Art. 168.2 separately makes the acquirer jointly liable for benefits (prestaciones) accrued before the transfer — and, importantly for a buyer, it provides for a certificate that guarantees an acquirer's non-liability (its exact form is set by Social Security regulation, so have a gestor request the current one).
The nuance that decides your case. Both rules are written around continuing the activity. The tax rule expressly does not catch a buyer of isolated assets — unless what you buy lets the business carry on. So whether your deal is a going-concern takeover or a purchase of separate items, and how it is documented, changes what follows you. One judgment on one deal is never the whole answer; the structure of your purchase is what settles it — which is exactly what to pin down before you sign. (A Portuguese case where an undisclosed court seizure sank a purchase →)
What to demand before taking over any Spanish business
- The Social Security non-liability certificate — Art. 168.2 provides for a certificate that guarantees an acquirer's non-liability; its exact form is set by Social Security regulation, so have a gestor request the right one for the business. Social Security is a creditor separate from the tax office.
- The Hacienda succession certificate (certificado de sucesión de actividad, Art. 175.2 LGT) — requested with the seller's consent, your liability is limited to the debts and penalties the certificate lists; a clean certificate, or one the tax office fails to issue within three months, leaves you exempt. Skip it, and your successor liability also reaches the seller's tax penalties. How it works, and what it doesn't cover →
- Clarity, in writing, on the deal structure — going concern vs isolated assets is the exact line the statute turns on.
- A holdback or escrow clause sized for debts that could surface in the statutory look-back window — negotiated before signing, not after the demand letter arrives.
Obligations that follow the business are Layer 4 of every screen I run. Before you commit, I name which of these certificates your specific purchase needs — and what to demand from the seller before any deposit.
Check my deal →Basis: the consolidated statutory texts cited above, retrieved from the Boletín Oficial del Estado on 9 July 2026; article references are given so you can read the wording yourself. This is general information about how the machinery works, not legal or tax advice, and not a statement about any current listing; how these rules apply depends on the facts of a specific deal, which a local lawyer or gestor should confirm.