Sheriff's offices are typically tasked with operating jails, security at courthouses and county buildings, protection of judges and juries, preventing breaches of the peace, and coordinating with city police departments. Sheriff's offices may also be responsible for security in public areas and events.