German lawmakers voted to pass a law on Thursday banning so called "conversion therapies" that are aimed at suppressing sexual orientation or gender identity.
"Homosexuality is not an illness," said Health Minister Jens Spahn, who is openly gay. "Therefore the term therapy is already misleading."
Under the new law, advertising or offering conversion therapy will be prohibited for children up to the age of 18. Violators can be fined up to up to €30,000 ($33,000) or sentenced to up to one year in prison. Parents and guardians who force their children to undergo the programs can also be charged for violating their duty of care.
The practices have long been criticized for causing severe psychological and physical suffering.
Although the new law does not constitute a complete ban of the practice, it carries punishments as well if an adult consented to the therapy after being deceived, coerced or threatened.
German Chancellor Angela Merkel's conservatives and their Social Democrat (SPD) coalition partners voted in favor of the ban, as well as the business-friendly Free Democrats (FDP).
The far-right Alternative for Germany (AfD) largely abstained, except for one vote against the law. The Left Party and the Greens also abstained from the vote, but argued that the law didn't go far enough to protect young adults.