Complex sentence: He taught at Elgin High School for four decades while serving as city councilman, mayor, and various other capacities in Elgin's local government.
Split into simpler sentences: He taught at Elgin High School for four decades. He also served as a city councilman, mayor, and in various capacities in Elgin's local government.