The political tensions culminated in the First Schleswig War of 1848 that ended three years later with the victory of Denmark without resolving the underlying problems. The Danish government pledged to reinstall the Danish state in its former form, thus granting every part of it the same rights.