Complex sentence: He presided over Poland's transition from communism to a post-communist state, but his popularity waned and after narrowly losing the 1995 presidential election, his role in Polish politics diminished.
Split into simpler sentences: He presided over Poland's transformation from a communist to a post-communist state, but his popularity waned. After he narrowly lost the 1995 presidential election, his role in Polish politics diminished.