Wichita began as a trading post on the Chisholm Trail in the 1860s and was incorporated as a city in 1870. It became a destination for cattle drives traveling north from Texas to Kansas railroads, earning it the nickname 'Cowtown'. Wyatt Earp served as a police officer in Wichita for around one year before going to Dodge City.
Wikipedia