Dizdar
Dizdar was the title given in the Ottoman Empire to a castle warden or fortress commander, appointed to manage troops and keep the fortress in its role as a defence point.
The word is of Persian origin, meaning gatekeeper, watchman, guardsman or castellan. It spread to the west following the Ottoman conquest of the southeastern Europe.
Dizdar commanded military unit in the fortress, but at the same time he was responsible for the settlement under or around it as well, because the purpose of fortress was to defend the area.
As a commanding person, dizdar had his deputy, called chekhaya, and other subordinates. His superiors were captain, sanjakbeg and other senior military officers.
In 1835 Ottoman Empire abolished captaincies; the titles like captain and dizdar ceased to exist.