West Virginia was admitted as the 35th US state during the height of the US Civil War.

The state of Virginia had already seceded from the USA, but not everyone in Virginia was happy about this, particularly those in the western regions. Numerous meetings were held in 1861, and by the end of the year, it was decided that West Virginia would become a state. It took West Virginia just over another year to develop a constitution that the US would approve.

Source