Wisconsin became a territorial possession of the United States in 1783 after the American Revolutionary War. In 1787, it became part of the Northwest Territory. As territorial boundaries subsequently developed, it was then part of Indiana Territory from 1800 to 1809, Illinois Territory from 1809 to 1818, and Michigan Territory from 1818 to 1836. However, the British remained in control until after the War of 1812, the outcome of which finally established an American presence in the area. Under American control, the economy of the territory shifted from fur trading to lead mining. The prospect of easy mineral wealth drew immigrants from throughout the U.S. and Europe to the lead deposits located at Mineral Point, Dodgeville, and nearby areas. Some miners found shelter in the holes they had dug, and earned the nickname "badgers", leading to Wisconsin's identity as the "Badger State". The sudden influx of white miners prompted tension with the local Native American population. The Winnebago War of 1827 and the Black Hawk War of 1832 culminated in the forced removal of Native Americans from most parts of the state.