A city of northern Germany on the Elbe River northeast of Bremen. Founded by Charlemagne in the early ninth century, the city quickly grew in commercial importance and in 1241 formed an alliance with Lübeck that became the basis for the Hanseatic League. Today Hamburg is a major port and financial, industrial, and cultural center.