Complex sentence: Active in New York City politics, O'Dwyer ran for political office several times, gaining election to the position of New York City Council President, which was then one of three city-wide elected positions.
Split into simpler sentences: Active in New York City politics, O'Dwyer ran for political office several times. He gained election to the position of New York City Council President, which was then one of three city-wide elected positions.