Hamburg was founded in the 9th century as a mission settlement to convert the Saxons. Since the Middle Ages, it has been an important trading center in Europe. The convenient location of the port and its independence as a city and state for centuries strengthened this position.