Many organized, incorporated territories existed from 1789 to 1959. The first were the Northwest and Southwest territories and the last were the Alaska and Hawaii territories. Thirty-one territories (or parts of territories) became states. In the process, some less-populous areas of a territory were orphaned from it after a statehood referendum. When a portion of the Missouri Territory became the state of Missouri, the remainder of the territory (the present-day states of Iowa, Nebraska, South Dakota and North Dakota, most of Kansas, Wyoming, and Montana, and parts of Colorado and Minnesota) became an unorganized territory.