In attempting to capture Charleston, the Union military tried two approaches, by land over James or Morris Islands or through the harbor. However, the Confederates were able to drive back each Union attack. One of the most famous of the land attacks was the Second Battle of Fort Wagner, in which the 54th Massachusetts Infantry took part. The Federals suffered a serious defeat in this battle, losing 1,500 men while the Confederates lost only 175. During the night of February 23, 1864, the CSS Hunley made the first successful sinking of an enemy warship by a submarine, although the Hunley was also sunk shortly afterwards. The Confederates used other crafts such as the David but these were not as successful.