Kansas Territory
From June 4, 1812 until August 10, 1821 the area that would become Kansas Territory 33 years later was part of the Missouri Territory. When Missouri was granted statehood in 1821 the area became unorganized territory and contained little to no permanent white settlement with the exception of Fort Leavenworth. The Fort was established in 1827 by Henry Leavenworth with the 3rd U.S Infantry from St. Louis, Missouri; it is the first permanent European settlement in Kansas. The fort was established as the westernmost outpost of the American military to protect trade along the Santa Fe Trail from Native Americans. The trade came from the East, by land using the Boone's Lick Road, or by water via the Missouri River. This area, called the Boonslick, was located due east in west-central Missouri and was settled by Upland Southerners from Virginia, Kentucky, and Tennessee as early as 1812. It's slave-holding population would contrast with settlers from New England who would eventually arrive in the 1850s. 
The land that would become Kansas Territory was considered to be infertile by 19th century American pioneers. It was called the Great American Desert, for it lacked trees and was dryer than land eastward. Technically, it was part of the vast grasslands that make up the North American Great Plains and supported giant herds of American bison. After the invention of the steel plow and more sophisticated irrigation methods the thick prairie soil would be broken for agriculture. By the 1850s immigration pressure was increasing and organization into a Territory was desired.
Presidency of James Buchanan
After the passage of the Kansas–Nebraska Act in 1854, two competing governments had been formed in Kansas Territory. The anti-slavery settlers organized a government in Topeka, while pro-slavery settlers established a seat of government in Lecompton, Kansas. For Kansas to be admitted as a state, a constitution had to be submitted to Congress with the approval of a majority of residents. Under President Pierce, a series of violent confrontations known as "Bleeding Kansas" occurred as supporters of the two governments clashed. The situation in Kansas was watched closely throughout the country, and some in Georgia and Mississippi advocated secession should Kansas be admitted as a free state. Buchanan himself did not particularly care whether or not Kansas entered as a slave state, and instead sought to admit Kansas as a state as soon as possible since it would likely tilt towards the Democratic Party. Rather than restarting the process and establishing one territorial government, Buchanan chose to recognize the pro-slavery Lecompton government.