Complex sentence: Since the Middle Ages, the Kingdom of Denmark has prospered from the fees it received for passage through the Øresund at Copenhagen and at the same time provided shelter, trade and repair opportunities and protection from piracy.
Split into simpler sentences: Since the Middle Ages, the Kingdom of Denmark has prospered from the fees it received for passage through the Øresund at Copenhagen. These have funded protection, trade and repair opportunities and protection from piracy.