Gay marriage did not become legal in Wyomingâwhere Brokeback Mountain was set between 1963 and 1983âuntil Oct. 21, 2014, and the U.S. Supreme Court just ruled in June that states couldn't deny same-sex couples the right to marry.