In 1979, the Iowa Supreme Court ruled in favor of gay rights in the case of Varnum v. Brien. The ruling declared that Iowa's ban on same-sex marriage was unconstitutional, making Iowa the third state in the country to legalize same-sex marriage.