The longest-serving elected official in county government is retiring at the end of the year.