Gay marriage was legalized nationwide in the United States on June 26, 2015, when the U.S. Supreme Court ruled in Obergefell v. Hodges that all state bans on same-sex marriage were unconstitutional. This decision required all 50 states to recognize and allow same-sex marriages and honor out-of-state same- sex marriage licenses. Prior to this ruling, Massachusetts was the first state to legalize same-sex marriage in 2004, and the legalization expanded gradually across various states until the 2015 Supreme Court decision made it legal across the entire country.