And in the early 1960s, long before the revolution, the Ayatollah Khomeini published a ruling on the permissibility of sex-change operations. Indeed, since the 1979 revolution the Iranian state has disturbingly as a consequence become a leader in the region in sex-realignment surgery, in large part because undergoing it is one of the only ways in which people who are found to be gay can avoid punishments worse even than unwanted surgery.