The EU family member residence card — the tarjeta comunitaria — is one of the most common ways for a non-EU spouse or partner of an EU citizen to live and work in Spain. So the question that brings most people to this page is an anxious one: if I divorce, do I lose my residency? The short answer is that divorce, separation, or the cancellation of a registered partnership does not automatically cancel your residence. Spanish and EU law expressly protect your right to stay in several situations — but only if you fit one of the legal grounds, act within the deadlines, and document it correctly. This page explains, in plain English, exactly when you keep the card, what to do step by step, the documents by scenario, and what your options are if you do not qualify.
The governing rule is article 9 of Royal Decree 240/2007 (which transposes EU Directive 2004/38/EC into Spanish law). It is still in force and was not affected by the 2024 immigration reform, because the community regime is a separate body of law from the general immigration rules. Article 9.4 is the heart of it: it sets out the grounds on which a non-EU former spouse or partner keeps the right of residence after the relationship ends.
Who this page is for
This applies to non-EU nationals in Spain whose residence card was issued under the EU family regime — that is, as the family member of an EU/EEA/Swiss citizen (which includes Spanish citizens who have exercised free movement, and other EU nationals living in Spain). What matters is that your card is the tarjeta comunitaria, not a general-regime family reunification permit. If your residence came from family reunification under the general regime (sponsored by a non-EU legal resident), different retention rules apply — we flag that distinction below, because mixing the two is a common and costly error.
For background on the card itself — how it works and how it is first obtained — see our main page on the EU family member card. This page is specifically about keeping it once the relationship ends.
Can you keep the community card after divorce?

Yes, in many cases — but “keeping the card” has a precise legal meaning. It does not mean simply holding on to the plastic. It means that, even without the family link, you retain the right to reside in Spain in your own name under the community regime, because article 9.4 recognises your situation. To do that, you must meet at least one of four grounds. If you meet none of them, the right of residence based on the relationship ends, and the correct move is to switch to another permit before a gap opens up.
Ground 1 — Duration of the relationship (the “3 years + 1 in Spain” rule)
This is the most common route, and the one most people search for. You keep the right of residence if the marriage or registered partnership lasted at least three years up to the start of the divorce, annulment, or cancellation proceedings, and you can prove that at least one of those years was spent in Spain. The three years are counted up to the moment the legal process begins — not the final ruling — so timing matters. If your relationship is close to the three-year mark, when you start proceedings can be decisive, and this is exactly the kind of point worth checking before filing anything.
Ground 2 — Custody of children
If custody of the EU citizen’s children is awarded to you (the non-EU former spouse or partner), by mutual agreement or judicial decision, you keep the right of residence — even if the three-year rule is not met. The children’s residence in Spain and a clear custody document are the anchors of this case.
Ground 3 — Especially difficult circumstances (gender violence, trafficking)
The law protects people who lived through especially difficult circumstances during the relationship. Two are named expressly: having been a victim of gender-based violence, and having been a victim of human trafficking at the hands of the spouse or partner. For gender violence, the circumstance is considered provisionally proven when there is a protection order in your favour or a report from the Public Prosecutor indicating evidence of gender violence, and definitively proven when a judicial decision confirms it. These are sensitive cases where confidentiality and careful sequencing matter, and where you do not need to meet the three-year rule.
Ground 4 — Visitation rights over a minor in Spain
Even without custody, you keep the right of residence if a court has granted you visitation or parental access rights over a minor child who resides in Spain, for as long as those rights are in place. This is one of the most under-explained grounds, and it can save a case that fails the duration test.
A separate, important case: the EU citizen leaves Spain
Article 9 also covers the situation where the EU citizen leaves Spain or dies, which often overlaps with a relationship breakdown. The key protection here (article 9.3) is for children and the parent who cares for them: if the EU citizen leaves Spain but the children reside in Spain and are enrolled in education, neither the children nor the parent with effective custody loses the right of residence — and that protection lasts until the children finish their studies, regardless of the parent’s nationality. This reflects long-standing EU case law (the Teixeira / Ibrahim line) and is a powerful, often-overlooked safeguard. If the EU citizen has left Spain and there are no schooled children, the original basis for the card may no longer exist, and renewal will be scrutinised — which makes early planning essential.
The condition that runs underneath all of this
There is one requirement that applies across the retention grounds and that competitor pages routinely miss. Until you reach permanent residence (generally after five years of legal residence), keeping your community residence in your own name requires that you continue to meet the underlying conditions of the regime: that you are working, self-employed, studying, or have sufficient resources and health insurance — or that you are the family member in Spain of someone who does. Retention protects your right to stay; it does not exempt you from this activity-or-means condition until permanent residence consolidates your status independently of the relationship.
What to do, step by step
Most pages say “you can keep it if…” and stop. The “how” is where cases are won or lost. The sequence:
- Confirm your two key dates: when the divorce, annulment, or cancellation becomes final, and when your card expires. Your urgency and strategy follow from these.
- Identify your ground (duration, custody, difficult circumstances, or visitation) and confirm the evidence you can actually prove. If none applies, plan the switch to another permit straight away.
- Notify the Immigration Office (Extranjería) of the change in marital status. There is a legal obligation to communicate it; doing it promptly — as a working rule, within a month of the ruling becoming final — protects you against extinction proceedings and renewal problems. Using the card while no longer meeting the conditions, without communicating, is not lawful.
- Prepare the file for your scenario. A duration-based file looks different from a custody case or a protection case; the documents must be complete and consistent across registry records, padrón, and civil-status documentation.
- Keep the card until renewal. Once you have communicated the change and you qualify, your existing card stays valid until its expiry. At renewal, an independent card is issued in your own name — without the EU citizen’s name — and if you have completed five years, it can be the permanent residence card.
If you do not qualify: the three-month rule
If none of the four grounds applies, you should not simply wait. The established practice is to modify to the general regime within three months — applying for an independent residence (or residence-and-work) authorization — so you do not fall into an irregular gap. Acting inside that window is what preserves your options; letting the card lapse first narrows them sharply.
Documents, by scenario
Exact requirements vary by office, but the file is built around four blocks: your identity and current card, the divorce or cancellation document, proof of the retention ground you are claiming, and proof you meet the activity-or-means condition.
- All cases: valid passport, your current TIE/community card, the final divorce, annulment, or cancellation document, and updated padrón. If the divorce was granted abroad, it usually needs to be recognised in Spain (exequatur or the relevant EU registration) before the administration can rely on it — a step that often causes delay, so start it early.
- Duration ground: marriage or registered-partnership certificate showing at least three years to the start of proceedings, plus evidence that at least one year was lived in Spain (padrón history, and supporting records).
- Custody or visitation: the court ruling or regulating agreement, proof the child resides in Spain, and, for the schooling protection, the enrolment certificate.
- Protective circumstances: for gender violence, a protection order or Public Prosecutor report (provisional), or the judicial decision (definitive); for trafficking, the corresponding documentation.
- Activity or means: employment or self-employment proof, or evidence of sufficient resources plus health insurance, covering the period until permanent residence.
The strongest files are not the thickest — they are the most consistent. Names, dates, and addresses must line up across every document, because mismatches between the registry, the padrón, and your declared timeline are the most common trigger for a request to fix the file.
Can you work and travel while it is being processed?
While your existing card is valid, your right to work continues. The risk window is around renewal and travel: if your card is close to expiry, you want proof of having filed in time before you travel, and you should confirm what documentation you will need to re-enter Spain. The safest approach is to plan submissions so you always hold valid status or a filing receipt, rather than letting the card lapse and then trying to recover the position.
Alternatives if you do not qualify (or want independence)
If no retention ground fits — or if you simply prefer a status that does not depend on the past relationship — there are routes out of the community regime into an independent permit:
- Modification to a residence-and-work authorization if you have employment or a viable self-employment activity.
- Non-lucrative residence if you have sufficient means and prefer not to work — see our page on the non-lucrative visa.
- Arraigo routes, if your circumstances fit, as a regularization path within the general regime.
- Permanent residence, if you are reaching five years of legal residence — the strongest option, because it becomes fully independent of marital status.
Common mistakes that cause refusals
The recurring problems are practical, not insurmountable: waiting until the card is about to expire before acting; claiming an exception (custody, gender violence) without the precise supporting document; inconsistencies between registry, padrón, and the declared timeline; and — for registered partnerships in particular — cancelling the registration before checking whether the timing still allows retention. On that last point, if a breakup is foreseeable, it is genuinely worth taking advice before cancelling anything, because the order and timing of steps can decide whether a retention ground stays available.
How Lexmovea helps

Separation or divorce creates real uncertainty when your residence was built on the relationship — but “if I divorce I lose my residency” is simply not true as a blanket statement. The outcome depends on which ground fits, how strong your evidence is, and the steps you take afterwards. Lexmovea assesses your timeline, relationship duration, residence history, children and custody factors, the EU citizen’s situation (including if they have left Spain), and any protective circumstances; explains your retention options versus an independent permit and the risks around work, travel, and expiry; prepares and files the documentation matched to your scenario; communicates the change to Extranjería correctly and on time; and represents you, including on appeals, if a decision is negative. We work in English throughout, and we treat the sensitive cases with the discretion they require.
If you are separating or divorcing from an EU citizen and want to know whether you can keep your tarjeta comunitaria or should move to the general regime, contact Lexmovea for a consultation. We’ll confirm your ground, the deadlines that apply, and the exact documents your case needs.
Frequently asked questions
Does divorce automatically cancel the community card in Spain?
No. Divorce, annulment, separation, or cancellation of a registered partnership does not automatically cancel your residence. Article 9 of Royal Decree 240/2007 lets you keep the right of residence in your own name if you meet one of its grounds, communicate the change, and document it correctly.
How long do I need to have been married to keep the card after divorce?
On the duration ground, the marriage or registered partnership must have lasted at least three years up to the start of the divorce or cancellation proceedings, with at least one of those years lived in Spain. If you do not meet this, you may still qualify through custody, court-ordered visitation, or protective circumstances such as gender violence.
What if I divorce before three years of marriage?
It depends on your situation. If there are children with custody or visitation rights, or protective circumstances such as gender violence or trafficking, the card can be retained. If none of these applies, the usual step is to modify to the general regime within three months to protect your status.
What if my EU spouse leaves Spain after we divorce?
If you have children who reside in Spain and are enrolled in education, you and the children keep the right of residence until they finish their studies, even after the EU citizen leaves. Otherwise, your ability to stay depends on whether you meet a retention ground; if not, you would move to an independent permit. Early action is important because renewal will be scrutinised.
Do I have to tell Extranjería about the divorce?
Yes. There is a legal obligation to communicate the change in status. As a working rule, do it within a month of the ruling becoming final. If you do not qualify to retain the card, you should apply to modify to the general regime within three months to avoid a gap in your legal residence.
What happens to my card after I qualify?
Your existing card stays valid until it expires. At renewal, you are issued an independent card in your own name, without the EU citizen’s name on it. If you have completed five years of legal residence, that renewal can be the permanent residence card.
Is this the same as keeping residence after family reunification?
No. This page covers the community regime (RD 240/2007), for family of EU/EEA/Swiss citizens. If your residence came from family reunification under the general regime, sponsored by a non-EU legal resident, the retention rules are different (for example, a two-year cohabitation benchmark or gender-violence protection). Confirming which regime your card belongs to is the first step.
Can my residence be revoked after divorce?
If your status depended on the relationship and you neither qualify for retention nor move to another route, extinction proceedings can be started. Acting early — choosing to retain or to modify, and communicating the change — is what prevents the loss and keeps you in a regular situation.