The Republican Party was formed in opposition to the expansion of slavery into the Western territories.
Broadly, the party agreed that slavery could not and should not expand into the western territories but there was significant rifts between interests groups within the party who did not agree on what the country should do with the actual institution of slavery itself.