When and why did West Virginia separate from the state of Virginia?

The American Civil War. Folks in West Virginia did not want to leave the Union.
The American Civil War. Folks in West Virginia did not want to leave the Union.