In 1433 , the city of Bern bought the castle and used it to govern the area from 1444 to 1798 .
In 1433 , the city of Bern bought the castle and used it to govern the region from 1444 to 1798 .