Long the most populated county in New Hampshire, Hillsborough County has played a vital role in shaping the state's politics as a whole, although it has shifted in its own leanings over the years. Historically a Republican county going back to the 19th century, the county's more urban population made it receptive to Democrats in the early 20th century at a time when much of New England was solidly Republican. The county- and the state as a whole- voted Republican in every election since the founding of the Republican Party in 1856 until 1912, when both the county and the state were won by Democrat Woodrow Wilson. Four years later, Wilson's margin of victory in Hillsborough County enabled him to narrowly win the state as a whole despite losing the majority of counties, and making New Hampshire the only state to vote Democratic in New England and the entire Northeast in 1916.