Racine, Beloit, Burlington, and Janesville, and established schools, civic institutions, and Congregationalist churches. At the same time, many Germans, Irish, Norwegians, and other immigrants also settled in towns and farms across the territory, establishing Catholic and Lutheran institutions. The growing population allowed Wisconsin to gain statehood on May 29, 1848, as the 30th state. Between 1840 and 1850, Wisconsin's non-Indian population had swollen from 31,000 to 305,000. More than a third of residents (110,500) were foreign born, including 38,000 Germans, 28,000 British immigrants from England, Scotland, and Wales, and 21,000 Irish. Another third (103,000) were Yankees from New England and western New York state. Only about 63,000 residents in 1850 had been born in Wisconsin. Nelson Dewey, the first governor of Wisconsin, was a Democrat. Dewey oversaw the transition from the territorial to the new state government. He encouraged the development of the state's infrastructure, particularly the construction of new roads, railroads, canals, and harbors, as well as the improvement of the Fox and Wisconsin Rivers. During his administration, the State Board of Public Works was organized. Dewey, an abolitionist, was the first of many Wisconsin governors to advocate against the spread of slavery into new states and territories. Civil War Politics in early Wisconsin were defined by the greater national debate over slavery. A free state from its foundation, Wisconsin became a center of northern abolitionism. The debate became especially intense in 1854 after Joshua Glover, a runaway slave from Missouri, was captured in Racine. Glover was taken into custody under the Federal Fugitive Slave Law, but a mob of abolitionists stormed the prison where Glover was held and helped him escape to Canada. In a trial stemming from the incident, the Wisconsin Supreme Court ultimately declared the Fugitive Slave Law unconstitutional. The Republican Party, founded on March 20, 1854, by anti-slavery expansion activists in Ripon, Wisconsin, grew to dominate state politics in the aftermath of these events. During the Civil War, around 91,000 troops from Wisconsin fought for the Union. Economic progress Wisconsin's economy also diversified during the early years of statehood. While lead mining diminished, agriculture became a principal occupation in the southern half of the state. Railroads were built across the state to help transport grains to market, and industries like J.I. Case & Company in Racine were founded to build agricultural equipment. Wisconsin briefly became one of the nation's leading producers of wheat during the