Complex sentence: Williams was re-elected to successive Congresses before his death in 1842, first as a Republican, then as a Crawford Republican, next as a supporter of John Quincy Adams or "Anti-Jacksonian," and finally as a Whig.
Split into simpler sentences: Williams was re-elected to successive Congresses before his death in 1842. In keeping with the turbulent times in which the parties realigned, he served under five different party labels: as a Republican, as a Crawford Republican, as a supporter of John Quincy Adams, as an "Anti-Jacksonian," and finally as a Whig.