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 <span>favor of large government and the other was more in favor of states' rights.</span>