Barbour County Sheriff John Hawkins will serve a second term.
Hawkins, a Democrat, defeated Republican challenger Carlton "Jody" Haller, of Belington, by 160 votes to win the seat, according to unofficial results from Tuesday's general election.
"I am very honored the citizens would give me the opportunity to serve for four more years," Hawkins said. "One of my top priorities is to heal the issues between the law enforcement agencies the election has caused."
The sheriff described this year's election as "the worst" he has seen on the local and the national levels.
"People wanted to talk about rumors and not the facts," he said. "It may have stopped some people from running. It is going to take some time for the wounds to heal."
Hawkins said he looks forward to continuing the work he began four years ago, including the battle against illegal drug use.
"Without the constraints of an election, we can continue what we started," he said.
Hawkins, of Philippi, topped Haller by 160 votes to retain his seat as the top law enforcement officer in the county. Hawkins received 2,861 votes, while Haller took 2,701.
Haller said he believed the turnout in the county was excellent, and he said he appreciates the support he received.
"I want to thank the citizens of Barbour County for their support," he said. "Someone has to win and someone has to lose. It was a good turnout, and the people have spoken."