 After the death of Ulrich IV, who had ordered it built, the work stopped and the building remained incomplete for almost 200 years.It was only finished in 1344.During the period of Bernese rule, beginning approximately in the early 17th century, the gaol was located on the first floor; it can still be visited today.