Same-sex marriage became legal Wednesday in all 32 of Mexico's states after a recent vote.

The vote in the state of Tamaulipas passed with 23 votes in favor, 12 against, and two absences. It makes same-sex marriage recognized within its Civil Code.

"Today is a historic day for the LGBTQ community and for Mexico. Today we and our families are more visible, more equal, and we are a country with more justice," said LGBTQ activist Enrique Torre Molina on Wednesday.

The legalization comes following three other states that also recently approved the change this month including the state of Guerrero only a few days earlier. The State of Mexico, which is Mexico's largest state, legalized equal marriage on Oct. 11.

"The whole country shines with a huge rainbow. Live the dignity and rights of all people. Love is love," Arturo Zaldivar, the president of Mexico's supreme court, posted on Twitter.

Opinion polls have shown a steady increase in support for same-sex marriage. In 2010, a Vanderbilt University poll showed that 37.8% of Mexicans supported same-sex marriage. A survey from AmericasBarometer in 2017 showed that 51% of Mexicans supported same-sex marriage.

In 2009, Mexico City became first area to legalize same-sex marriage.

In 2015, Mexico's supreme court ruled state laws against same sex marriage was unconstitutional, but some of the states did not immediately change laws.