The Confederate submarine H.L. Hunley, which was the first submarine to sink an enemy ship in combat, was built in Mobile, Alabama in 1863.