Ancient occupational or status name from alcaide from Arabic al-qāʾid "the leader, the commander" (see Kaid). The meaning of the Spanish and Portuguese word varied depending on period and region including "castellan" "constable of a castle" "customs officer" and "jailer".