In April 1863, Trapier was called by Gen. P.G.T. Beauregard, who at this time commanded at Charleston, to command the garrison located on Sullivan's Island during Union Admiral Samuel DuPonts' naval assault on the city. DuPont's attack failed and, with Charleston safe, Trapier reported back to Georgetown.