Shapiro was elected pennsylvania attorney general in 2016, defeating republican john rafferty jr. , and was reelected in 2020. Getting stuff done governor shapiro has laid out a commonsense agenda since day one, and he is already delivering results for pennsylvanians.