Promoted to captain of U.S. engineers, Foster was in command of the garrison at Fort Moultrie when the Civil War began.
By 1864, 2200 freedmen lived on Roanoke Island, settled on individual household plots, and working for pay for the Army.