Lawmakers in Mexico City on Friday voted to ban conversion therapy, part of a small but growing movement to end the practice of trying to change a person’s sexual orientation or gender identity. Under Mexico City’s proposal, which needs further approval before taking effect, anyone who forces someone to undergo the practice can be punished with up to five years in prison. Widely condemned by medical groups, conversion therapy can range from psychological counseling to religious practices and even electroshock therapy in an effort to change someone from gay to straight. When a practice like conversion therapy is banned, young LGBT+ people will benefit from wider acceptance, said Temistocles Villanueva, a local deputy with the ruling Morena party who spearheaded the proposal. “You have greater security,” Villanueva told the Thomson Reuters Foundation.