Verified Answer :

Kasztelan był gubernatorem lub kapitan kasztelanii i jego zamku. Słowo pochodzi od łacińskiego castellanus, pochodzącego z castellum "Zamek".
Hope this helps!
Mam nadzieję że to pomoże!

Is this an actual language??? lol sorry