Sentence:  The municipal bodies were charged regularly to inspect the prisons; to watch over the conduct of the <WSD>alcaides</WSD>, and the inferior officers; and to propose to the government such measures as they judged to be best conducive to humanity and sound policy. 
Meaning of the word marked with <WSD> tags:  The governor or commander of a Spanish or Portuguese fortress or prison.