Complex sentence: The first was the territorial capital in St. Stephens in 1817, followed by the state convention in Huntsville in 1819, then the "permanent" capital in Cahaba in 1820, moved to Tuscaloosa in 1826, and finally coming to rest in Montgomery in 1846.
Split into simpler sentences: The first was the territorial capital in St. Stephens in 1817, followed by the state convention in Huntsville in 1819, then the first "permanent" capital in Cahaba in 1820. It was then moved to Tuscaloosa in 1826, until coming to rest in Montgomery in 1846.