(CNN)Germany's top court ruled Wednesday that lawmakers must legally recognize a "third gender" from birth.
Once a law is passed, Germany would become the first European country to offer intersex people the option of identifying as a designation other than male or female.
The court ruled that the current system, which "does not provide for a third option -- besides the entry 'female' or 'male,'" is unconstitutional.
In 2013, Germany became the first European country to allow parents of intersex children to leave the gender box blank on a birth certificate.
But Wednesday's ruling in the case, which was brought by an intersex person, goes further, requiring lawmakers to create the possibility for a "positive gender entry" for these babies.
The new legislation must be in force by December 31, 2018, the court said.
Johannes Dimroth, spokesman for Germany's Interior Ministry, said Wednesday: "We fully respect the decision of the Federal Constitutional Court and the government is fully willing to implement the decision."
'A very important step'
Between 0.5% and 1.7% of the global population is born with intersex traits, which means a person does not have typical male-female sex characteristics, according to the United Nations.
Some intersex traits are visibly evident, such as ambiguous genitalia, while there are a number of others which involve genetic, hormonal or anatomical differences.
According to the UN, intersex children and adults around the world are at risk of human rights violations, in the form of surgery, discrimination or even torture.