The sheriff is participating in law enforcement, which is part of the government.