Castellan

A castellan, or constable, was the governor of a castle in medieval Europe. Its surrounding territory was referred to as the castellany.