The history of Copenhagen dates back to the first settlement at the site in the 11th century. From the middle of the 12th century it grew in importance after coming into the possession of Bishop Absalon, and the city was fortified with a stone wall during the 13th century. The harbour and the excellent possibilities for herring fishing contributed to Copenhagen's growth and development into an important trading centre. It was repeatedly attacked by the Hanseatic League as the Germans became aware of its expansion. In 1254, it received its charter as a city under Bishop Jakob Erlandsen. The town was significantly enlarged under Christian IV of Denmark after his coronation in 1596 by the addition of new city districts and modern fortifications with earthworks and bastions. The king commissioned German and Dutch architects and craftsmen to construct magnificent edifices designed to enhance his prestige. By the time of Christian IV's death in 1648, Copenhagen had become Denmark's principal fortification and naval port, and the town formed a framework for the administration of the Danish kingdom and as a centre of trade in Northern Europe. During 1658-59 it withstood a severe siege by the Swedes under Charles X and successfully repelled a major assault. In 1728 and again in 1795, the city was ravaged by large fires, which destroyed most of the medieval part of town. In 1801, a British fleet under Admiral Parker fought a major battle, the Battle of Copenhagen, with the Danish navy in Copenhagen harbour. It was during this battle Lord Nelson "put the telescope to the blind eye" in order not to see Admiral Parker's signal to cease fire. When a British expeditionary force bombarded Copenhagen in 1807 in order to take control of the Danish navy, thus denying it to nascent French plans to invade Britain, the city suffered great damage and hundreds of people were killed. The main reason for the extensive devastation was that Copenhagen relied on an old defence line rendered virtually useless by the long ranged bombard ships and mortar batteries employed by the British. But not until the 1850s were the ramparts of the city opened to allow new housing to be built around the lakes which bordered the old defence system to the west. This dramatic increase of space was long overdue, not only because the old ramparts were out of date as a defence system, but also