Montgomery is the capital, second most populous city, and the fourth most populous metropolitan area in the Southern U.S. state of Alabama, and is the county seat of Montgomery County. It is located southeast of the center of the state, in the Gulf Coastal Plain. The city population was 201,568 as of the 2000 census. Montgomery is the primary city of the Montgomery Metropolitan Statistical Area, which had a 2000 population of 346,528, making it the fourth largest in the state.

Montgomery is located at 32° 21' 42" N 086° 16' 45" W (32.36167; -86.27917). According to the U.S. Census Bureau, the city has a total area of 156.2 square miles, of which 155.4 square miles of it is land and 0.8 square miles of it (0.52%) is water. The city is built over rolling terrain at an elevation of about 220 feet above sea level.

The city was incorporated in 1819, as a merger of two towns situated along the Alabama River. It became the state capital in 1846. In February 1861, Montgomery was selected as the first capital of the Confederate States of America, until the seat of government moved to Richmond, Virginia in May of that year. During the mid-20th century, Montgomery was a primary site in the African-American Civil Rights Movement, including the Montgomery Bus Boycott and the Selma to Montgomery marches.

Today, in addition to housing many Alabama government agencies, Montgomery has a large military presence due to Maxwell Air Force Base, public universities Alabama State University, Troy University (Montgomery campus), and Auburn University-Montgomery, private colleges/universities Faulkner University, Huntingdon College, and ABA-accredited law school Thomas Goode Jones School of Law, high-tech manufacturing including Hyundai Motor Manufacturing Alabama, and cultural attractions like the Alabama Shakespeare Festival and Montgomery Museum of Fine Arts.

Prior to European colonization, the left bank of the Alabama River was inhabited by the Alibamu tribe of Native Americans. The Alibamu and the Coushatta who lived on the opposite side the river were adept mound builders. Present-day Montgomery is built on the site of two Alibamu towns: Ikanatchati (or Ecunchatty or Econachatee), meaning "red earth"; and Towassa, built on a bluff called Chunnaanaauga Chatty. The first Europeans to come through central Alabama were Hernando de Soto and his expedition, who came through Ikanatchati and camped for one week in Towassa in 1540. It is also likely that Tristán de Luna y Arellano and his colonists traveled through the Montgomery area on their way from Nanipacana to Coosa in northwest Georgia.

The next recorded European movements in the area happened well over a century later, when an expedition from Carolina went down the Alabama River in 1697. The first permanent European settler in the Montgomery area was James McQueen, a Scottish trader who came to the area in 1716. In 1717, the French built Fort Toulouse to the northeast of Montgomery, serving primarily as a trading post with the Alibamu. The British gained all the territory east of the Mississippi River following the French and Indian War in 1764. In 1767, Alabama's area was divided between the Indian Reserve and West Florida. The boundary line (32° 28' north latitude) ran just north of present-day Montgomery. The northern portion later became part of the Province and later U.S. State of Georgia. The Treaty of Paris in 1783 which ended the American Revolutionary War gave Georgia's territory to the United States. The southern border of the territory was disputed between Spain (who had received West Florida from the British in a separate treaty) and the United States until 1795, when the Treaty of San Lorenzo gave the land north of the 31st parallel to the United States. This part of West Florida, including the southern half of Montgomery, became part of the Mississippi Territory in 1797. Georgia's western territory was integrated into Mississippi in 1804.

After McQueen's arrival, European immigration to the area was slow in coming; Abraham Mordecai of Pennsylvania arrived in 1785 and later brought the first cotton gin to Alabama. Following the end of the Creek War in August 1814, the Creek tribes were forced to give the majority of their lands to the U.S., including most of central and southern Alabama. With the hostile faction of Creeks that populated the Alabama River's banks moved south, the area became open for white settlers. Between 1814 and 1816, Arthur Moore built a cabin near the current location of Union Station.

In 1816, Montgomery County was formed, and its lands were sold off the next year at the federal land office in Milledgeville, Georgia. The first group of settlers to come to the Montgomery area was headed by General John Scott. The group founded Alabama Town about 2 miles downstream from present-day downtown. In June 1818, county courts were moved from Fort Jackson to Alabama Town. Soon after, Andrew Dexter founded New Philadelphia, the present-day eastern part of downtown. Dexter envisioned his town would one day grow to prominence; he set aside a hilltop known as "Goat Hill" as the future location for the state capitol building. New Philadelphia soon prospered, and Scott and his associates built a new town adjacent, calling it East Alabama Town. The towns became rivals, but merged on December 3, 1819, and were incorporated as the city of Montgomery. The new city was named for General Richard Montgomery, who died in the American Revolutionary War attempting to capture Quebec City, Canada. Montgomery County had already been named for Major Lemuel P. Montgomery, who fell at the Battle of Horseshoe Bend in the Creek War. A legacy of the towns' merger can be seen today in the alignment of downtown streets: streets to the east of Court Street are aligned in a north-south and east-west grid, while streets to the west are aligned parallel and perpendicular to the Alabama River.

Due in large part to the cotton trade, the newly united Montgomery grew quickly. In October 1821, the steamboat Harriet began running along the Alabama River to Mobile. In 1822, the city became the county seat, and a new courthouse was built at the present location of Court Square, at the foot of Market Street (now Dexter Avenue). In April 1825, Marquis de Lafayette visited Montgomery on his grand tour of the United States. In 1832, the Montgomery Railroad opened, and grew to reach West Point, Georgia by 1851. Due in large part to its transportation connections and central location in the state, the legislature decided to move the state capital from Tuscaloosa to Montgomery, on January 28, 1846. The city paid for the construction of the Capitol building on Goat Hill, the site set aside by Andrew Dexter 29 years earlier. The new building was ready for the 1847-48 legislature session, but on December 14, 1849, the building burned to the ground. It was rebuilt using the same plans and completed in 1851.

As state capital, Montgomery began to have a great influence over state politics, but would also play a prominent role on the national stage. Montgomery resident William Lowndes Yancey served in both houses of the Alabama State Legislature and in the U.S. House of Representatives, where he became an outspoken supporter of states' rights. He traveled the country spreading his "fire-eater" stance of slavery and secession. After Abraham Lincoln's election in 1860, Yancey led charge for Alabama's secession from the Union, which passed on January 11, 1861. Beginning February 4, representatives from Alabama, Georgia, Florida, Louisiana, Mississippi, and South Carolina met in Montgomery to form the Confederate States of America. Montgomery was named the first capital of the nation, and Jefferson Davis was inaugurated as President on the steps of the State Capitol. The convention and subsequent Confederate government activities were based at the Exchange Hotel near Court Square. On April 11, the order to fire on Fort Sumter, the act which started the American Civil War, was sent from the Winter Building, which served as the telegraph office. On May 29, 1861, the capital was moved to Richmond, Virginia, to be closer to the primary areas of battle. As a result, Montgomery remained virtually untouched by conflict during the war. On April 12, 1865, following the Battle of Selma, Major General James H. Wilson captured Montgomery for the Union.

In 1886 Montgomery became the first city in the United States to install city-wide electric street cars along a system that was nicknamed the Lightning Route. The system made Montgomery one of the first cities to "depopulate" its residential areas at the city center through transportation-facilitated suburban development. Cloverdale and Highland Park saw much of their growth during the height of the Lightning Route. On March 19, 1910, Montgomery became the winter home of the Wright brothers' Wright Flying School. The men frequented Montgomery and founded several airfields, one of which developed into Maxwell-Gunter Air Force Base after the Wrights began working with the government to produce planes for military use.

Montgomery was thrust into the spotlight of the early African-American Civil Rights Movement. In December 1955, Rosa Parks was arrested for refusing to give up her bus seat to a white man, sparking the Montgomery Bus Boycott. The Montgomery Improvement Association was created by Martin Luther King, Jr., then the pastor of Dexter Avenue Baptist Church, and E. D. Nixon, a lawyer and local civil rights advocate, to organize the boycott. Nixon, along with Fred Gray and Clifford Durr, argued the case of Browder v. Gayle before the U.S. District Court in Montgomery. In June 1956, Judge Frank M. Johnson ruled that Montgomery's bus segregation was illegal. After the Supreme Court upheld the ruling in November, the city desegregated the bus system, and the boycott was ended. King gained nationwide fame as a result of the Boycott. He remained in Montgomery until 1960, during which time he led the founding of the Southern Christian Leadership Conference.

In 1960, inspired by the Greensboro sit-ins, students from Alabama State College organized their own sit-in at the State Capitol's lunch counter to protest segregation. After the involved students were expelled at the insistence of Governor John Malcolm Patterson, thousands of students marched on the capitol. On May 20, 1961, the Freedom Riders, attempting to test desegregation laws on inter-state buses, arrived in Montgomery. After meeting with violence in Anniston and Birmingham, Governor Patterson pledged to protect the riders during their journey from Birmingham to Montgomery, but Montgomery city police did not continue to protect the riders. They were met by a mob who beat the riders and Justice Department officials who attempted to intervene. Police eventually intervened—and served the riders with injunctions for inciting violence. Days later, more riders departed Montgomery to continue the ride, only to be arrested upon reaching Jackson, Mississippi.

Martin Luther King would return to Montgomery in 1965. Local civil rights leaders in Selma had been protesting Jim Crow laws blocking Blacks from registering to vote. Following the shooting of a man after a civil rights rally, the leaders decided to march to Montgomery to petition Governor George Wallace to allow free voter registration. After meeting with resistance from state troopers, an incident that became known as "Bloody Sunday," Dr. King joined the effort. The march began on March 21, after Judge Frank M. Johnson authorized the march. By March 24, the marchers reached Montgomery, and the group camped and held a rally at the City of St. Jude that night. The next morning, the march reached the Capitol, and King gave a speech, How Long, Not Long, to the crowd of 25,000.

In recent years, Montgomery has continued to grow and diversify. In 1985, longtime resident and former Postmaster General Winton Blount donated 250 acres of land for the Montgomery Museum of Fine Arts and the Alabama Shakespeare Festival. ASF ranks as the fifth largest Shakespearean venue in the world. 1996 saw the construction of Montgomery's first skyscraper, the RSA Tower. In 2001, Alabama Supreme Court Chief Justice Roy Moore erected a 5,280-pound monument of the Ten Commandments in the Supreme Court building rotunda. The ensuing demonstrations by supporters and opponents alike brought national attention to Montgomery. In 2005, Hyundai Motor Manufacturing Alabama was founded, marking South Korean automaker Hyundai Motor Company's first manufacturing plant in the United States. The city government is active in restoring the downtown area, and in 2007 adopted a master plan, which included revitalization of Court Square and the riverfront.