Germany will add a “third gender option” to official identity records starting later this year.

The German cabinet passed a bill on Wednesday which allows people to register their gender as “miscellaneous.”

“Until now, people in a similar situation could only register without a gender,” reported Deutsche Welle.

The bill follows a court ruling last year in which authorities were told they must scrap gender identification altogether or allow people to choose "another positive designation of their sex that is not male or female."

The ruling stemmed from a case in which a plaintiff had only one X chromosome.

(Photo: INTRO / Rainer Steußloff/ullstein bild via Getty Images)