After the South seceded, he resigned from the US Army and became the first Confederate brigadier general. He commanded the defenses of Charleston, South Carolina, at the start of the Civil War at Fort Sumter on April 12, 1861. Three months later he won the First Battle of Bull Run near Manassas, Virginia.