Michigan Territory was a territory of the United States in the early 19th century, between June 30, 1805 and January 26, 1837, when it became Michigan, the 26th state of the Union. Detroit was the territory's capital.