Germany's top court has ruled that there must be the option of registering a third gender on birth certificates.
It would make Germany the first European country to offer intersex people the choice of identifying as neither male nor female.
The case was brought by a registered female whose chromosome test confirmed they were neither one sex nor the other.
Activists described it as a "small revolution".
The constitutional court in Karlsruhe has given the government until the end of 2018 to pass a law specifying a category other than male or female.
It said current regulations on civil status were discriminatory against intersex people.
The category could be called "inter" or "various".
A German government spokesperson said the government would comply with the ruling.
The activist group Third Option – which has been campaigning for official recognition – said on Twitter that it was "completely overwhelmed and speechless".
Intersex people are born with a mixture of male and female sex characteristics. The UN says the condition affects up to 1.7% of the world's population.
They are already recognised on official documents in countries including Australia, India, New Zealand, Nepal and the US, where the first intersex birth certificate was issued last year.
In Germany it has been possible since 2013 to leave the gender box blank on the birth certificate for people born with characteristics of both males and females. Before that, if there was any doubt, officials would enter either male or female.
In January Belgian model Hanne Gaby Odiele revealed that she was intersex, saying she hoped that it would "break the taboo".
But in May France's top appeals court ruled against offering a "neutral" gender designation to a 66-year-old psychotherapist born with neither a penis nor vagina and officially registered as a man.
The French court said the distinction between male and female was a "cornerstone" of social and legal organisation, and recognising a third gender would involve "numerous legislative changes," the New York Times reported.
- Takoradi woman in latest fake kidnapping jailed 6 years
- What are the 53 phone models that WhatsApp no longer supports?
- Allegations of bias against Justice Honyenuga unfounded, Opuni trial can proceed – Supreme Court
- Go to IMF for liquidity support; your finances not good – gov’t told
- CAF Confederation Cup: Hearts of Oak drawn with Algeria’s JS Saoura
- Alajo coup plot: You cannot travel to Kenya – Court declines Agordzo’s request
- Shatta Wale and Medikal each get ¢100k bail
- My employee became my landlord at a point in my career – CEO of Websoft solutions recounts
- Parliament’s debate on Anti-LGBTQ+ Bill and MPs’ vote to be made public
- Social media reacts to Shatta Wale and Medikal bail
Man stones mother to death in Savannah Region
29 in court for assaulting Police officers in Ada
Sunao Tsuboi: Campaigning Hiroshima survivor dies aged 96
Kufuor Scholars offered scholarship at MountCrest University College
While you disregard your own laws, be mindful of the dire consequences – Isaac Adongo to BoG Governor
‘I still feel traumatised by my experiences in EC’s strong room’ – Kpessa-Whyte
Parliament’s deliberation over Anti-LGBTQ bill could travel into 2022 – Sam George
MTN rewards customers with 5 Hyundai Sonatas under MTN @25 promo
Stacy Maweunam Amewoyi’s ‘Africa And The African’ raises questions about the continent’s fate
Facebook earns $9bn despite whistleblower scandal
UG to provide students, staff with laptops – New Vice-Chancellor announces
Joining Immigration Service will open doors for us to become billionaires – Applicants
International capital market debt constitutes 46% of Ghana’s external debt
Schoolboys ‘burn dormitory over Liverpool match’
Netflix scrambled internally to suppress a controversial movie from search results