Several months after hostilities began between the states, Beaufort was occupied by Union forces following the Battle of Port Royal. Due in part to its early occupation, the city attracted escaping slaves. The Union declared the slaves emancipated and initiated efforts at education and preparation for full independence. The Freedmen's Bureau worked with local blacks during Reconstruction.