After Sarpsborg was burned to the ground during the Northern Seven Years' War, the ruling king, Frederik II of Denmark, decided by royal decree to rebuild the city 15 kilometers south of the original location.