The Whigs and the Democrats were in opposition to each other from 1840 to 1861, but both of them encountered intra-party sectionalism over slavery.These two parties worked towards helping different people. One group was in favor of large government and the other was more in favor of states' rights.