When the Civil War began, even the B & O's President, John Work Garrett initially sympathized with the Southern cause. However, the B&O was crucial for the Union armies. Davis favored Union and also admired the new President Abraham Lincoln. When Confederate raiders attacked the B&O and destroyed track and bridges, part of Davis' job was to restore service and keep the supplies moving. Many in western Virginia likewise favored the Union, and met in two Wheeling Conventions, then adopted a statehood referendum and constitution, eventually becoming the 35th state. In 1865, Davis would be elected to the West Virginia House of Delegates as one of Hampshire County's representatives.