The most widely known battle fought by African Americans was the assault on Fort Wagner, off the Charleston coast, South Carolina, by the 54th Massachusetts Infantry on July 18, 1863. The 54th volunteered to lead the assault on the strongly fortified Confederate positions of the earthen/sand embankments (very resistant to artillery fire) on the coastal beach. The soldiers of the 54th scaled the Fort's parapet, and were only driven back after brutal hand-to-hand combat. Despite the defeat, the unit was hailed for its valor, which spurred further African-American recruitment, giving the Union a numerical military advantage from a large segment of the population the Confederacy did not attempt to exploit until too late in the closing days of the War. Unfortunately for any African-American soldiers captured during these battles, imprisonment could be even worse than death. Black prisoners were not treated the same as white prisoners. They received no medical attention, harsh punishments, and would not be used in a prisoner exchange because the Confederate states only saw them as escaped slaves fighting against their masters.