 He was one of the officers who received the formal surrender of U.S. Army Major Robert Anderson at Fort Sumter, raised the first Confederate States flag, and posted the first guards at Fort Sumter.After the siege, he was sent to present the first Confederate flag struck by enemy shot to the Provisional Congress of the Confederate States.He was a lieutenant-colonel and aide-de-camp to General Beauregard during the Battle of Shiloh.