In 1863, amid the American Civil War (in which the state of Virginia was disputed between the United States and the breakaway Confederate States), two gubernatorial elections were held as a result of this dispute, a Confederate election and a U.S. election.
Fetching the article from Wikipedia…
Text from the Wikipedia article “1863 Virginia gubernatorial election (Union)”, available under CC BY-SA 4.0.