Complex sentence: Deputy Mayor Károly Gerlóczy unsuccessfully ran for the position of Mayor following Kamermayer's resignation, as a result he retired too at the end of 1897, thereby completely passing the city administration to a new generation.
Split into simpler sentences: Deputy Mayor Károly Gerlóczy ran unsuccessfully for the position of Mayor following Kamermayer's resignation. As a result he too retired at the end of 1897, thereby completely passing the city administration to a new generation.