Societal attitudes towards same-sex relationships have varied over time and place. Attitudes to male homosexuality have varied from requiring males to engage in same-sex relationships to casual integration, through acceptance, to seeing the practice as a minor sin, repressing it through law enforcement and judicial mechanisms, and to proscribing it under penalty of death. In addition, it has varied as to whether any negative attitudes towards men who have sex with men have extended to all participants, as has been common in Abrahamic religions, or only to passive (penetrated) participants, as was common in Ancient Greece and Ancient Rome. Female homosexuality has historically been given less acknowledgment, explicit acceptance, and opposition. The widespread concept of homosexuality as a sexual orientation and sexual identity is a relatively recent development, with the word itself being coined in the 19th century.
Many male historical figures, including Socrates, Lord Byron, Edward II, and Hadrian, have had terms such as gay or bisexual applied to them; some scholars, such as Michel Foucault, have regarded this as risking the anachronistic introduction of a contemporary social construct of sexuality foreign to their times, though others challenge this. A common thread of constructionist argument is that no one in antiquity or the Middle Ages experienced homosexuality as an exclusive, permanent, or defining mode of sexuality. John Boswell has countered this argument by citing ancient Greek writings by Plato, which describe individuals exhibiting exclusive homosexuality.
In a 1976 study, Gwen Broude and Sarah Greene compared attitudes towards and frequency of homosexuality in the ethnographic studies available in the Standard cross-cultural sample. They found that out of 42 communities: homosexuality was accepted or ignored in 9; 5 communities had no concept of homosexuality; 11 considered it undesirable but did not set punishments, and 17 strongly disapproved and punished.