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.
Latest Stories
-
3 confirmed dead in Ejisu-Konongo Highway collision, 1 injured
20 mins -
Fatawu Issahaku gets assist as Leicester City beat Preston to win Championship title
39 mins -
Child’s right advocate criticises state’s handling of ‘victim’ in alleged child marriage case
41 mins -
NPP has created 2.1m jobs in seven years – Bawumia
53 mins -
Akosombo Dam spillage: We’re considering a class action suit against government – Ablakwa
58 mins -
Government offers teacher unions about 70% increment in continuous professional development allowance
1 hour -
Everyone must show interest in depleting pension funds – Pensions Expert
1 hour -
African Business Heroes: African SMEs ready to compete for a share of $1.5m grant
2 hours -
My government will partner with faith-based groups in development – Bawumia
2 hours -
Joy Prime’s Prime Morning to host show at sea in May Day celebration with Ghana Navy
2 hours -
Why increase contribution rate when you can’t manage what is given you? – NAGRAT asks SSNIT
3 hours -
There are greener pastures in Ghana – Prof Owusu-Dabo
4 hours -
Myjoyonline Interview with Abubakar Tahiru: Guinness World Record Holder for ‘Most Trees Hugged In An Hour’
4 hours -
JoyNews’ Clinton Yeboah honoured at 2023 Int’l Sports Media Awards in Spain
5 hours -
14 PWDs selected for maiden Africa Health Collaborative Medicine Counter Assistant training
5 hours