A sheriff is the highest law enforcement officer of a county. Whereas a Marshall is an enforcement officer serving the court.
Related: Explore The Chain Of Command In The Police Department With Duties And Responsibilities