Montgomery is the capital city of the U.S. state of Alabama and the county seat of Montgomery County. Named for Continental Army Major General Richard Montgomery, it stands beside the Alabama River, on the coastal Plain of the Gulf of Mexico. The population was 200,603 at the 2020 census. It is the third-most populous city in the state after Huntsville and Birmingham, and is the 133rd most populous in the United States. The Montgomery Metropolitan Statistical Area's population in 2022 was 385,460; it is the fourth largest in the state and 142nd among United States metropolitan areas. The city was incorporated in 1819 as a merger of two towns situated along the Alabama River. It replaced Tuscaloosa as the state capital in 1846, representing the shift of power to the south-central area of Alabama with the growth of cotton as a commodity crop of the Black Belt and the rise of Mobile as a mercantile port on the Gulf Coast. In February 1861, Montgomery was chosen the first capital of the Confederate States of America, which it remained until the Confederate seat of government moved to Richmond, Virginia, in May of that year. In the middle of the 20th century, Montgomery was a major center of events and protests in the Civil Rights Movement, including the Montgomery bus boycott and the Selma to Montgomery marches. In addition to housing many Alabama government agencies, Montgomery has a large military presence, due to Maxwell Air Force Base. It has three public universities (Alabama State University, Troy University (Montgomery campus), and Auburn University at Montgomery), two private post-secondary institutions (Faulkner University and Huntingdon College), high-tech manufacturing (particularly Hyundai Motor Manufacturing Alabama), and many cultural attractions, such as the Alabama Shakespeare Festival, the Montgomery Museum of Fine Arts, and the National Memorial for Peace and Justice. Montgomery has also been recognized nationally for its downtown revitalization and new urbanism projects. It was one of the first cities in the nation to implement SmartCode Zoning.