The law of chastity of The Church of Jesus Christ of Latter-day Saints (LDS Church) states that "sexual relations are proper only between a man and a woman who are legally and lawfully wedded as husband and wife." In principle, this commandment forbids all same-sex sexual behavior (whether intra-marriage or extramarital). Homosexuality-related violations of the law of chastity may result in church discipline.
Members of the church who experience homosexual attractions, including those who self-identify as gay, lesbian, or bisexual, may remain in good standing in the church if they abstain from sexual relations (outside of opposite-sex marriage). Although no one, including those participating in same-sex sexual behavior, is forbidden from LDS Church Sunday worship services, acquiring and maintaining membership in the church and receiving a temple recommend is dependent upon observing the law of chastity's prohibition of sexual relationships outside of a marital relationship between husband and wife.
Although the LDS Church has taught that homosexuality is a curable condition, it now states that "individuals do not choose to have such attractions" and that therapy focusing on "a change in sexual orientation" is "unethical". The church teaches that regardless of the cause of same sex attraction, "immoral relationships" must be abjured.
The LDS Church has campaigned against government recognition of same-sex marriage, and the issue of same-sex marriage has been one of the church's foremost political concerns since the 1990s. For example, church members represented as much as 80 to 90 percent of the early volunteers petitioning voters door-to-door and 50 percent of the campaign funds in support of California Proposition 8 (2008). The church supported a Salt Lake City ordinance protecting members of the LGBT community against discrimination in employment and housing while at the same time allowing religious institutions to discriminate in hiring or providing university accommodations, stating it remained "unequivocally committed to defending the bedrock foundation of marriage between a man and a woman."