Cody Balmer pleaded guilty to attempted murder for firebombing the home of Pennsylvania Governor Josh Shapiro.
Balmer, 38, faces 25 to 50 years in prison under a plea agreement. He told police he harbored "hatred" towards Governor Shapiro.
In April, Balmer threw a Molotov cocktail at Shapiro's official residence during the first night of the Passover holiday.
Balmer said he would "have beaten him with his hammer" if he had encountered Shapiro during the attack.
Prosecutors announced the plea agreement in Dauphin County, Pennsylvania.
Cody Balmer pleads guilty to attempted murder for firebombing Governor Josh Shapiro's home.