Hamburg (ˈhambʊʁk, ˈhambʊɪ̯ç; Hamborg ˈhambɔːç), officially the Free and Hanseatic City of Hamburg (Freie und Hansestadt Hamburg; Friee un Hansestadt Hamborg), is the second-largest city in Germany after Berlin, as well as the overall 8th-largest city and largest non-capital city within the European Union with a population of over 1.9 million. Hamburg's urban area has a population of around 2.5 million and is part of the Hamburg Metropolitan Region, which has a population of over 5.1 million people in total. At the southern tip of the Jutland Peninsula, Hamburg stands on the branching River Elbe at the head of a estuary down to the North Sea, on the mouth of the Alster and Bille. Hamburg is one of Germany's three city-states alongside Berlin and Bremen, and is surrounded by Schleswig-Holstein to the north and Lower Saxony to the south. The Port of Hamburg is Germany's largest and Europe's third-largest, after Rotterdam and Antwerp. The local dialect is a variant of Low Saxon.
The official name reflects Hamburg's history as a member of the medieval Hanseatic League and a free imperial city of the Holy Roman Empire. Before the 1871 unification of Germany, it was a fully sovereign city state, and before 1919 formed a civic republic headed constitutionally by a class of hereditary grand burghers or Hanseaten. Beset by disasters such as the Great Fire of Hamburg, North Sea flood of 1962 and military conflicts including World War II bombing raids, the city has managed to recover and emerge wealthier after each catastrophe.
Major regional broadcaster NDR, the printing and publishing firm Gruner + Jahr and the newspapers Der Spiegel and Die Zeit are based in the city. Hamburg is the seat of Germany's oldest stock exchange and the world's oldest merchant bank, Berenberg Bank. Media, commercial, logistical, and industrial firms with significant locations in the city include multinationals Airbus, Blohm + Voss, Aurubis, Beiersdorf, Lufthansa and Unilever. Hamburg is also a major European science, research, and education hub, with several universities and institutions.