The Democrats dominated the state of Pennsylvania in the late 20th century and the early 21st century. The Republicans won the state for the first time since 1988 in 2016.