Spain does not have birthright citizenship in the way the United States or Canada do. Being born on Spanish soil is not, by itself, enough to make a child Spanish. Nationality in Spain passes through the parents: if your mother or father is Spanish, you are Spanish from birth, wherever in the world you happen to be born.1Ministerio de Justicia. Spanish Civil Code A child born in Madrid to two foreign parents is generally not Spanish. A child born in Tokyo to two Spanish parents is.
That is the default under Article 17 of the Civil Code. But the same article carves out a handful of situations where birth in Spain does matter, and there is a separate shortcut into naturalization for anyone born in the country who missed those exceptions. Both are worth understanding before you assume the birthplace does nothing.
When Birth in Spain Does Grant Citizenship
Article 17 recognizes three narrow cases where a child born in Spain to foreign parents is Spanish by origin.1Ministerio de Justicia. Spanish Civil Code
The first is the double-generation rule. If at least one of the child’s foreign parents was also born in Spain, the child is Spanish. The reasoning is that two consecutive generations born on Spanish soil signal deep roots. Children of foreign diplomats or consular officials posted in Spain are excluded from this rule.
The second is statelessness prevention. If neither parent’s home country would grant the child a nationality — because both parents are stateless, or because the relevant foreign laws do not pass citizenship to children born abroad — Spain grants nationality so the child is not left a citizen of nowhere.2Global Citizenship Observatory (GlobalCIT). Spanish Civil Code – Book One This matters most in practice for parents from certain Latin American and African countries whose nationality laws create exactly that gap.
The third covers unknown parentage. A child found in Spain whose parents cannot be identified is presumed born in Spain and treated as Spanish by origin.
There is one wrinkle for adults. If someone’s parentage or birth in Spain is only established after they turn eighteen, that determination does not automatically make them Spanish. It gives them two years from the date of that determination to opt into Spanish nationality.1Ministerio de Justicia. Spanish Civil Code
If You Were Born in Spain but Didn’t Qualify at Birth
This is the situation most people are actually asking about: a child born in Spain to foreign parents who don’t meet any of the Article 17 exceptions. That child is not Spanish at birth, and does not become Spanish simply by growing up in the country.
What they do get is a much faster route to naturalization. The standard residency requirement for citizenship is ten years of legal, continuous residence. For someone born in Spain who did not acquire nationality at birth, that requirement drops to one year.2Global Citizenship Observatory (GlobalCIT). Spanish Civil Code – Book One
The same one-year path is available to a few other groups: people married to a Spanish citizen for at least a year without separation, widows and widowers of Spanish citizens who were not separated at the time of death, people who were under the guardianship of a Spanish citizen or institution for two consecutive years, people who missed the deadline to exercise an option right, and people born abroad to a parent or grandparent who was Spanish by origin.
In every case the residency must be legal, continuous, and immediately before the application, and the applicant must show good civic conduct and integration into Spanish society.
Citizenship Through a Spanish Parent Who Was Born in Spain
If the reason you’re asking about birthright citizenship is a Spanish parent or grandparent rather than your own birthplace, a different provision applies. Article 20 of the Civil Code lets you opt for Spanish nationality if your mother or father was originally Spanish and born in Spain — and this option has no age limit.1Ministerio de Justicia. Spanish Civil Code A sixty-year-old whose mother was born in Barcelona and was originally Spanish can still exercise this right. It is the broadest route open to descendants of the Spanish diaspora.
Two related option rights exist. Someone who is or has been under the parental authority of a Spanish citizen can opt for nationality; if you’re already over eighteen, the right generally expires at age twenty, or two years after emancipation if that came later. Adults adopted by a Spanish citizen have two years from the adoption to opt in. Minors adopted by a Spaniard become Spanish automatically under Article 19.
Latin American, Portuguese, Filipino, Andorran, and Equatoguinean Nationals
Two features of the system favor these nationalities specifically. First, they qualify for naturalization after only two years of legal residency in Spain rather than ten, along with people of Sephardic origin.2Global Citizenship Observatory (GlobalCIT). Spanish Civil Code – Book One Refugees qualify after five.
Second, nationals of Latin American countries, Andorra, the Philippines, Equatorial Guinea, and Portugal are exempt from the requirement to renounce their prior nationality when they become Spanish.2Global Citizenship Observatory (GlobalCIT). Spanish Civil Code – Book One Applicants from other countries — including the United States and the United Kingdom — are required by Article 23 to formally renounce, though whether that renunciation actually terminates citizenship in their home country depends on that country’s own law. The U.S., for instance, does not treat a renunciation made before a foreign official as sufficient to end U.S. citizenship.
The Democratic Memory Law Window Has Closed
If your research has pointed you toward the Democratic Memory Law, sometimes called the Grandchildren’s Law, that pathway is no longer open. The 2022 law let descendants and grandchildren of people who fled Spain during the Civil War and the Franco dictatorship claim Spanish nationality by origin, but the application window closed on October 22, 2025, and no further extensions are expected. Applicants who secured an appointment confirmation before the deadline may still complete their files; new cases cannot be opened.
For anyone who missed the window, the Article 20 option right for children of a parent who was originally Spanish and born in Spain remains available with no age cap. The one-year naturalization route also remains open to anyone born abroad to a parent or grandparent who was Spanish by origin, provided they establish legal residency in Spain first.