The first Bernese Landvogt took up residence in the castle in 1444, governing the district of Lenzburg from there. The duties of a Landvogt included collecting taxes, implementing administrative measures, judicial and police tasks and the power of military decree; they were also responsible for the upkeep of the castle. The Landvogt was elected from the ranks of the city council of Bern for four-year terms. The best known Landvogt of Lenzburg was Adrian I of Bubenberg, from 1457 to 1461, later Schultheiß of Bern and hero of the Battle of Morat.