Hamburg originated (early 9th cent.) in the Carolingian castle of Hammaburg, probably built by Charlemagne as a defense against the Slavs. It became (834) an archepiscopal see (united in 847 with the archdiocese of Bremen) and a missionary center for northern Europe. The city quickly grew to commercial importance and in 1241 formed an alliance with Lübeck, which later became the basis of the Hanseatic League. Hamburg accepted the Reformation in 1529. In 1558 the first German stock exchange was founded there; with the arrival of Dutch Protestants, Portuguese Jews, and English cloth merchants (expelled from Antwerp), and with the expansion of commercial ties with the United States after 1783, Hamburg continued to prosper.
The city was occupied by the French in 1806 and in 1815 joined the German Confederation. In 1842 a fire destroyed much of the city. After World War I Hamburg was briefly (1918-19) a socialist republic. In 1937 the city ceded Cuxhaven, its outlying port, to Prussia, but incorporated the neighboring towns of Altona, Harburg, and Wandsbek. During World War II (especially in 1943) Hamburg was severely damaged by aerial bombardment, and some 55,000 persons were killed. After the end of the cold war, the city became a transit port for trade with Central Europe and experienced a surge in shipping.
Hamburg today is an elegant, modern city and a cultural center, widely known for its opera, theaters, magazine and book-publishing houses, radio and television broadcasting centers, and film studios. At its center are two lakes, the Binnenalster (Inner Alster) and the Aussenalster (Outer Alster). The St. Pauli district, with its well-known street, the Reeperbahn, includes numerous places of entertainment. Hamburg is the seat of a university (founded 1919), several museums, and medical and technical institutes. There are extensive zoological and botanical gardens. Noteworthy buildings include the baroque St. Michael's Church (1750-62), rebuilt (1907-12) after a fire; the Church of St. Jacobi (begun in the 14th cent.); and the Renaissance-style city hall (1886-97). Felix Mendelssohn and Johannes Brahms were born in the city.
City (pop., 2002 est.: city, 1,726,363; metro. area, 2,515,468), constituting a state, northern Germany. Covering 292 sq mi (755 sq km), it is located on the Elbe River and is Germany's largest port. It grew around the 9th-century castle of Hammaburg. Treaties with Lübeck in the mid-13th century led to the formation of the Hanseatic League, of which it was a leader. Incorporated into the French Empire (1810–14), it became a member of the German Confederation as a free city in 1815. In World War II Allied firebombing killed some 55,000 people and devastated the city. It was rapidly rebuilt after the war. The birthplace of Felix Mendelssohn and Johannes Brahms and home to the Hamburg Opera, it enjoys a distinguished musical history. It is Germany's foremost industrial city and northern Germany's chief economic centre.
Learn more about Hamburg with a free trial on Britannica.com.