Landskrona's military importance declined after the 18th century. The continued Swedish–Danish wars led to Karlskrona replacing Landskrona as a naval base, as it is located at a safer distance from Denmark. Although the fortifications at Landskrona were expanded considerably between 1747 and 1788, they were condemned in 1822, whereafter the garrison was abolished in 1869. The last military regiment, "Skånska Husarregimentet, K5" was renamed and moved from Landskrona to Uppsala in 1926. Today the walls and moats of the fortifications of Landskrona Citadel are a recreational area and the castle holds a museum. On the northern side, an allotment-garden area of cottages was founded in the final years of the 19th century, and is today the oldest of its kind in Sweden. The military's large exercise field became a public heath, today called ""Exercisfältet"" or ""Exan"".