The Hanseatic League was for a century an agency of civilization. It cleared the Baltic and North Seas of pirates, dredged and straightened waterways, charted currents and tides, marked off channels, built lighthouses, ports, and canals, established and codified maritime law, and in general substituted order for chaos in northern European trade.