sentences:  In the Middle Ages it was called "Skodborg Å" after the royal castle Skodborghus, where a track crossed the watercourse south of Vejen.For centuries a customs border near Kongeå separated the Kingdom of Denmark from the duchy of Schleswig.From 1864 to 1920, except in the extreme west, Kongeåen marked the border between Denmark and Germany.