A sheriff is the highest-ranking law enforcement officer in a county, elected by the community, typically to serve a four-year term.