The Whig Party was formed in 1834 as a means of organizing those opposed to the presidency of Andrew Jackson. The party absorbed the National Republican Party and the Anti-Masonic Party. Whigs elected two generals as President in the 1840s, both of whom died in office. The party crumbled over the slavery issue in 1854. The northern wing of the party disappeared after its dismal performance in the election of 1856. The southern wing of the party remained a minority but active group until the Civil War.