A three-judge panel of the 4th U.S. Circuit Court of Appeals on Tuesday rejected a challenge from Democrats, who argued that the law suppresses voting by blacks, Latinos and young people.
The same court recently struck down a North Carolina law that required voters to produce a photo ID.
Virginians can obtain free photo IDs at voter registrar offices, but Democrats say few people know about that option because the state has done little to spread the word.
Emily Bolton, spokeswoman for the Democratic Party of Virginia, says the party is disappointed and is determining its next steps in the litigation.
A spokesman for the Virginia Department of Elections couldn't immediately be reached.
Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.