As Charlemagne extended his realm in the late 8th century, he met a united Danish army which successfully defended Danevirke, a fortified defensive barrier across the south of the territory west of the Schlei.
The wealth of Schleswig, as reflected by impressive archeological finds on the site today, and the taxes from the Haithabu market, was enticing.