The southern part of Schleswig contains the ruins of the old Danish viking "capital" Hedeby and the Danevirke fortification; its first sections were built around 400–500 AD, possibly to protect Denmark from migrating tribes during the age of migration.