The Kansas-Nebraska Act was intended to facilitate the building of a transcontinental railroad through Midwestern territories but caused controversy when it allowed settlers through popular sovereignty to decide whether to allow slavery in the new territories of Kansas and Nebraska. The Act was drafted by Senator Stephen Douglas who hoped it would ease tensions between North and South by permitting both slavery and abolition, but it instead galvanized opposition and led to the formation of the Republican Party committed to stopping slavery's expansion.