Dakota Territory existed between 1861 and 1889, when it was divided into North Dakota and South Dakota.