The 45th Virginia Infantry Battalion was formed in detachments throughout southern West Virginia, Logan, Wayne, Wyoming, and Boone counties, from April to December 1863 until it reached six companies with 287 men. Most men who joined the newly formed infantry unit had previously served with Lieutenant Colonel Henry M. Beckley in the 1st Regiment of the Virginia State Line, a unit that had disbanded that January.