).The castle was first mentioned in sources dating back to 1326, but was most likely built in the second half of the 13th century, like most Danish city castles.The castle was the home of the governor of the borough (and later the county), who took care of the king's (or in Southern Jutland, the duke's) possessions, in and around the city.