The area became part of the United States' Northwest Territory (from July 13, 1787, until July 4, 1800), and then part of the Indiana Territory. On February 3, 1809, the 10th United States Congress passed legislation establishing the Illinois Territory, after Congress received petitions from residents in the Mississippi River areas complaining of the difficulties of participating in territorial affairs in Indiana Territory. The portions of the Illinois Territory north of what became the State of Illinois were in 1818 annexed to Michigan Territory, and after several administrative arrangements became a part of the Upper Peninsula of Michigan (1837), the State of Wisconsin (1848), and a northern section of the State of Minnesota (1858).