Complex sentence: In 1854, he was elected to congress as an anti-Masonic Whig, after joining Republican Party, he was re-elected to the 35th Congress in 1857.
Split into simpler sentences: In 1854, he was elected to Congress as an anti-Masonic Whig. After joining the Republican Party, he was re-elected to the 35th Congress in 1857.