Initially, the castle was the conventual seat of the commander. Knight Commander was the head of the religious house in some knightly orders (Teutonic Knights, Knights of Malta, Templars). Later, in the monastic state, he was the administrator of a commandery (province), consisting of one or several castles and adjacent territory.