Cahaba, also spelled Cahawba, was the first permanent state capital of Alabama, United States, from 1820 to 1825. It was the county seat of Dallas County, Alabama until 1866. Located at the confluence of the Alabama and Cahaba rivers, the town endured regular seasonal flooding.