Cahaba prison was located near Selma, Alabama, in the center of the now-vanished town of Cahawba which was the state capital of Alabama from 1820 to 1826. The prison was located in a cotton warehouse on the banks of the Alabama River and was in operation intermittently from 1862 to April 1865.