West Virginia separated from Virginia due to differing opinions on slavery and the Confederacy during the Civil War. The western counties of Virginia opposed secession and formed their own state to remain loyal to the Union.