Dakota Territory existed as an entity from 1861 until 1889, when it was divided into the states of North Dakota and South Dakota.