Huntsville's quick growth was generated by the cotton and railroad industries. Many rich planters moved to the area from Virginia, Georgia and the Carolinas. The forty-four delegates who met in Huntsville wrote a constitution for the new state of Alabama. The new state constitution said that Huntsville is Alabama's first capital. This was temporary for one legislative session only. The capital was then moved to another temporary location, Cahawba, until the legislature selected Montgomery as the permanent location.