 He joined the Anti-Masonic Party in the early 1830s before becoming a member of the Whig Party, which united those opposed to President Jackson.During his time in Congress, Adams became increasingly critical of slavery and of the Southern leaders whom he believed controlled the Democratic Party.He was particularly opposed to the annexation of Texas and the Mexican–American War, which he saw as a war to extend slavery.