Mark Obenshain, the Republican candidate for attorney general of Virginia, on Wednesday conceded to rival Mark Herring, after a recount of month-old ballots showed the Democrat holding a narrow but growing lead.
By bowing out, he gave Democrats the first sweep of all three statewide offices, including governor and lieutenant governor, since 1989.
Herring had previously declared victory in the attorney general's race.
But Obenshain requested a recount when the final election totals showed that Herring's margin of victory was only 165 votes, out of more than 2.2 million cast.
Under Virginia law, a losing candidate can request a recount when the margin of victory is less than 1 percent of all votes cast.