The Supreme Court ruled 5-4 that states cannot ban same-sex marriage. Writing for the majority, Justice Kennedy stated that the Fourteenth Amendment requires states to license marriages between two people, regardless of their sex, and to recognize same-sex marriages granted in other states. The decision legalized same-sex marriage nationwide and required all states to perform and recognize marriages between same-sex couples on the same terms and conditions as opposite-sex couples.