A retired firefighter who threw a fire extinguisher at police officers during the U.S. Capitol riot was sentenced on Tuesday to more than four years in prison.

Robert Sanford struck two police officers in the head with the fire extinguisher that he threw as he stormed the Capitol on Jan. 6, 2021, with a mob of Donald Trump supporters. He also threw an orange traffic cone at a Capitol police sergeant.

"Sanford also hurled obscenities and insults at the law enforcement officers on the Lower West Terrace, calling them ‘traitors,’" a prosecutor, Janani Iyengar, wrote in a court filing.

KANSAS CITY MAN INVOLVED IN CAPITOL PROTESTS CLAIMS TO BE 'RIDICULOUSLY ASHAMED' BEFORE SENTENCING

One of the officers struck by the fire extinguisher had a bump and swelling on his head; the other had a headache and went to a hospital for a medical exam, prosecutors said.

U.S. District Judge Paul Friedman sentenced Sanford to four years and four months in prison followed by three years of supervised release, according to an online court record. Federal prosecutors had recommended a prison sentence of five years and 11 months.

Sanford, 57, of Boothwyn, Pennsylvania, worked as a firefighter for 26 years before retiring in 2020. A fire extinguisher is "an instrument that he was uniquely familiar with and should have known how much damage it could cause," the prosecutor wrote.

Sanford traveled to Washington, D.C., with friends from Pennsylvania on bus trip organized by the conservative activist group Turning Point USA. He listened to speeches at Trump's "Stop the Steal" rally before joining the crowd that marched over to the Capitol and disrupted the joint session of Congress for certifying Democrat Joe Biden's electoral victory over Trump.

Sanford was arrested on Jan. 14, 2021. He has been jailed since he pleaded guilty last September to assaulting, resisting or impeding police officers using a dangerous weapon — a felony punishable by a maximum of 20 years in prison. He wasn't accused of entering the Capitol building on Jan. 6.

Robert Sanford

Retired Boothwyn, Pennsylvania firefighter Robert Sanford was sentenced to over four years in prison for his role in the Jan. 6, 2021 Capitol riot.

Sanford began to work with a specialist in cult deprogramming in August 2022 and was confronted with "facts" about the baseless conspiracy theory that Democrats stole the 2020 presidential election from Trump, according to defense attorney Andrew Stewart.

"Even after he was incarcerated, he participated in regular discussions designed to challenge his ideology and belief structure, then help him understand how and why he developed the beliefs that led him to make the decisions that he did on January 6," Stewart wrote in a court filing.

Sanford believed that police had attacked him and others without provocation when he picked up and threw what felt like an empty fire extinguisher, his lawyer said.

"Certainly, this is not a justification for his action nor is it intended to be," Stewart wrote.

More than 1,000 people have been charged with federal crimes related to the Jan. 6 riot. Over 600 of them have pleaded guilty or been convicted after trials decided by a jury or judge. Over 450 of them have been sentenced, with over half getting terms of imprisonment ranging from seven days to 10 years.

More than 100 police officers were injured during the Jan. 6 riot.

TEXAS MAN, FORMER ALEX JONES EMPLOYEE, GETS HOME DETENTION FOR STORMING CAPITOL

Also on Tuesday, a Nevada man who joined other rioters in assaulting police officers in a tunnel on the Lower West Terrace was sentenced to six years in prison. U.S. District Court Judge Carl J. Nichols also ordered Josiah Kenyon, 35, of Winnemucca, Nevada, to pay over $43,000 in restitution for damaging a window at the Capitol on Jan. 6.

Kenyon was dressed as the character Jack Skellington from the movie "The Nightmare Before Christmas" when he joined the mob's attack. He used a table leg with a protruding nail to strike an officer in the leg and hit a second officer so hard that it lodged in the officer’s face shield and helmet, prosecutors said.

Prosecutors recommended a prison sentence of seven years and four months for Kenyon, who pleaded guilty to assault charges in September 2022.

CLICK HERE TO GET THE FOX NEWS APP

Kenyon drove to Washington from Reno, Nevada with his wife and young children to attend Trump's rally. Kenyon told FBI agents that he hated Trump and went to the Capitol because he was "trying to raise the violence level," prosecutors wrote, adding, "His idea was to have 'the Trumpers' charge the police line which would in turn cause the officers to shoot the rioters."