castellan
A castellan is a person responsible for managing a castle or fort. This role includes overseeing the daily operations, maintaining the property, and ensuring the safety of its inhabitants. Castellans were often appointed by a lord or noble and played a crucial role in the defense and administration of the castle.
In medieval times, the duties of a castellan could also involve organizing the castle's defenses during sieges and managing supplies. They acted as a liaison between the lord and the castle's inhabitants, including soldiers and servants, ensuring that everyone followed the rules and maintained order within the castle.