During the U.S. Civil War, he served as captain of the and rescued Major Robert Anderson and Union troops after the bombardment of Fort Sumter. In 1861, he served in the Atlantic Blockading Squadron, was cited for bravery at the Battle of Port Royal and at the Battle of Hatteras Inlet and he was promoted to captain.