Same-sex marriage, also known as gay marriage, is the marriage of two people of the same sex or gender. As of 2022, marriage between same-sex couples is legally performed and recognized in 33 countries, with the most recent being Mexico, constituting some 1.35 billion people (17% of the world's population). In Andorra, a law allowing same-sex marriage will come into force on 17 February 2023.
Adoption rights are not necessarily covered, though most states with same-sex marriage allow those couples to jointly adopt as other married couples can. In contrast, 34 countries (as of 2021) have definitions of marriage in their constitutions that prevent marriage between couples of the same sex, most enacted in recent decades as a preventative measure. Some other countries have constitutionally mandated Islamic law, which is generally interpreted as prohibiting marriage between same-sex couples. In six of the former and most of the latter, homosexuality itself is criminalized. There are records of marriage between men dating back to the first century. In the modern era, the first civil government to knowingly issue a marriage license to a same-sex couple was Blue Earth County, Minnesota, United States in 1971.
The first law providing for marriage equality between same-sex and opposite-sex couples was passed in the continental Netherlands in 2000 and took effect on 1 April 2001, after being signed by Queen Beatrix. The application of marriage law equally to same-sex and opposite-sex couples has varied by jurisdiction, and has come about through legislative change to marriage law, court rulings based on constitutional guarantees of equality, recognition that marriage of same-sex couples is allowed by existing marriage law, and by direct popular vote, such as through referendums and initiatives. The most prominent supporters of same-sex marriage are the world's major medical and scientific communities, and human rights and civil rights organizations, while most prominent opponents are religious fundamentalist groups. Polls consistently show continually rising support for the recognition of same-sex marriage in all developed democracies and in some developing countries.
Scientific studies show that the financial, psychological, and physical well-being of gay people are enhanced by marriage, and that the children of same-sex parents benefit from being raised by married same-sex couples within a marital union that is recognized by law and supported by societal institutions. Social science research indicates that the exclusion of same-sex couples from marriage stigmatizes and invites public discrimination against gay and lesbian people, with research also repudiating the notion that either civilization or viable social orders depend upon restricting marriage to heterosexuals. Same-sex marriage can provide those in committed same-sex relationships with relevant government services and make financial demands on them comparable to that required of those in opposite-sex marriages, and also gives them legal protections such as inheritance and hospital visitation rights. Opposition to same-sex marriage is based on claims such as that homosexuality is unnatural and abnormal, that children are better off when raised by opposite-sex couples, that recognition of same-sex marriage violates freedom of religion and undermines religion, that legalizing same-sex marriage would lead to polygamous and incestuous marriages being legalized, that legalization would undermine the institutions of marriage and the family, that same-sex couples cannot procreate, and that the recognition of same-sex unions will promote homosexuality in society. The first two claims are refuted by scientific studies, which show that homosexuality is a natural and normal variation in human sexuality, and that sexual orientation is not a choice. Many studies have shown that children of same-sex couples fare just as well as the children of opposite-sex couples; some studies have shown benefits to being raised by same-sex couples.