Under the rule of Mohammad Reza Shah, the last monarch of the Pahlavi dynasty, homosexuality was tolerated, even to the point of allowing news coverage of a same-sex wedding. Janet Afary has argued that the 1979 Revolution was partly motivated by moral outrage against the Shah's government, and in particular against a mock same-sex wedding between two young men with ties to the court. She says that this explains the virulence of the anti-homosexual oppression in Iran. After the 1979 Revolution, thousands of people were executed in public, including homosexuals.