Mexico's Supreme Court issued a unanimous ruling Wednesday striking down a same-sex marriage ban in the southern state of Oaxaca. Advocates say the language of the decision could open the door for same-sex marriages throughout the nation.

The ruling effectively changes Oaxaca's civil code to state that marriage takes place "between two people," instead of between a man and woman, reports Spanish-language site AnimalPolitico.

The court ruled in favor of three same-sex couples who sued the state of Oaxaca for the right to marry. The ruling does not immediately eliminate marriage bans in other Mexican states, but it does set a legal precedent to begin challenging statewide marriage bans, according to the blog AfterMarriage.

While many Mexican states still have marriage bans on the books, in 2010 the nation's capital, Mexico City, began serving gay and lesbian couples with marriage licenses. Shortly thereafter, the Supreme Court ruled that marriages performed in Mexico City must be recognized by every other state in the country, due to a constitutional clause that requires states to recognize contracts performed in other jurisdictions.