 He was appointed brigadier general as well as adjutant general and inspector general of South Carolina militia in 1862.He commanded part of the Charleston defenses during the Union siege of the city in 1863.He also led his men in opposition to Major General William T. Sherman's march through the Carolinas.