STATES SHIFTING

When the Supreme Court ruled last June in a pair of cases on same-sex marriage, 10 states allowed gay marriage. Since then, nine more have either legalized it or become the subject of court decisions that made, or could make, it legal.

July: A law permitting same-sex marriage took effect in Delaware.

August: Same-sex marriages became legal in Minnesota as the result of a voter-approved referendum. Legislation allowing them in Rhode Island also took effect.

September: A New Jersey judge ruled that the state's prohibition against same-sex marriage was unconstitutional. Gov. Chris Christie's office dropped an appeal Oct. 21 and same-sex marriages began that day.

November: The governors of Hawaii and Illinois signed legislation legalizing same-sex marriages.

December: New Mexico's Supreme Court ruled Dec. 19 that denying marriage to same-sex couples was unconstitutional. The following day, a federal judge issued a similar ruling in Utah. Gay marriages began there, but are currently on hold pending appeal.

January: A federal judge in Oklahoma ruled the state's marriage ban is unconstitutional. He stayed his ruling pending an appeal.

Gay marriage moved closer to gaining its first foothold in the South when Virginia’s attorney general said Thursday that the state’s ban on same-sex matrimony is unconstitutional and he will join the fight to get it struck down.

“It’s time for the commonwealth to be on the right side of history and the right side of the law,” newly elected Democrat Mark R. Herring said in a state that fiercely resisted interracial marriage in the 1950s and ’60s.

Republicans accused Herring of shirking his duty to defend the state’s laws after less than two weeks on the job, while gay rights activists exulted over the latest in a string of victories — this one in a conservative and usually hostile region of the country.

“It’s a nice day to be an American from Virginia,” Tom Shuttleworth, one of the lawyers challenging the ban, said in an email.

The move reflects the rise of new Democratic leaders in Virginia and illustrates how rapidly the political and legal landscape on gay marriage in the U.S. is shifting.

Herring, as a state senator, supported Virginia’s 2006 voter-approved constitutional amendment defining marriage as the union of a man and woman. But he said he decided after a “thorough legal review” that it is unconstitutional, and he will join gay couples in two federal lawsuits challenging the ban.

“I have now concluded that Virginia’s ban on marriage between same sex couples violates the Fourteenth Amendment of the U.S. Constitution on two grounds: Marriage is a fundamental right being denied to some Virginians, and the ban unlawfully discriminates on the basis of both sexual orientation and gender,” he said.

A federal judge will hear arguments in one of those lawsuits next week.

Herring stressed that the ban will be enforced in the meantime, meaning that clerks will continue to deny marriage licenses to same-sex couples.

In a movement that began with Massachusetts in 2004, 17 states and the District of Columbia now allow gay marriage, most of them clustered in the Northeast. None of them is in the old Confederacy.

“It’s enormously powerful that Virginia is taking this position,” said gay rights advocate James Esseks, director of the LGBT Project for the American Civil Liberties Union. “It is a solid part of the South. This is not the Northeast. This is not California.”

Richard Socarides, who was a senior policy adviser in the Clinton administration, called Herring’s action “a tipping point.”

“Virginia is now on the cutting edge of this,” he said. “I think it’s highly significant any time a state attorney general takes this position, but even more significant given the political makeup of the state is traditionally more conservative and now perhaps viewed as a swing state.”

Herring, whose Republican predecessor Ken Cuccinelli opposed gay marriage, was part of a Democratic sweep of the state’s top three offices in November. Virginia’s densely populated northern suburbs near Washington, D.C., are solidly Democratic, while other sections of the state remain solidly Republican.

Gov. Terry McAuliffe, who led the Democratic slate of victories, said through a spokesman that he supports Herring.

But Victoria Cobb, president of the conservative Family Foundation of Virginia, said: “It’s frightening that politicians like the attorney general feel that they can pick and choose which aspects of the Constitution they deem worthy to defend and apply.”

The Republican speaker of the Virginia House accused Herring of setting a “dangerous precedent.” State GOP chairman Pat Mullins said Herring should resign if he doesn’t want to do his duty. And Republican state Delegate Todd Gilbert proposed a bill that would allow legislators to defend state laws when the attorney general refuses to do so.

Virginia voters approved their state’s ban 57 percent to 43 percent. But a Quinnipiac University poll in July found that 50 percent of registered Virginia voters support same-sex marriage, while 43 percent oppose it. The margin of error was plus or minus 3.1 percentage points.