A former Virginia police sergeant who joined Donald Trump's supporters in storming the Capitol on Jan. 6, 2021, could be sentenced to up to eight years in prison on Thursday if a judge agrees with federal prosecutors' recommendation.

A jury in April convicted Thomas Robertson, a former police sergeant for the town of Rocky Mount, Virginia, of six criminal charges, including obstructing an official proceeding and obstruction of justice.

Eight years would be the longest sentence handed down so far in a Capitol riot case, if U.S. District Judge Christopher Cooper agrees with prosecutors, who say that Robertson abused his position of trust as a law enforcement officer.

Earlier this month, a federal judge sentenced Guy Reffitt, an associate of the far-right Three Percenters militia, to seven years and three months in prison.

TURLEY: 'COLOSSAL FAILURE' FOR AG GARLAND NOT TO APPOINT HUNTER BIDEN, JANUARY 6TH SPECIAL COUNSELS

Thousands of Trump supporters stormed the Capitol on Jan. 6, in an attempt to overturn his election defeat, which Trump falsely claims was the result of fraud.

Robertson's defense attorney is asking for a sentence of no more than 15 months.

Fairfax County police vehicle on city street with people and restaurant in behind the vehicle.

A police car is parked outside as people visit  Mosaic Shopping Center Mall on October 30, 2021, in Fairfax, Virginia.  ((Photo by Tasos Katopodis/Getty Images))

He has been in detention since last year, after the judge found he violated court orders and continued to purchase what prosecutors described as an "arsenal" of guns online. FBI agents also found a loaded M4 rifle and a partially assembled pipe bomb at his home during a search.

Robertson's trial featured testimony from Jacob Fracker, who had reported to Robertson on the police force, who entered the Capitol on Jan. 6, 2021, with Robertson where they took selfies together.

JAN. 6 HEARINGS GET UNDERWAY THURSDAY EVENING

Prosecutors said Robertson later destroyed the cell phones they had been using that day.

Fracker, who cooperated with the Justice Department, pleaded guilty to a felony charge of conspiracy in March, and is due to be sentenced on Aug. 16. In exchange for his cooperation, prosecutors are asking the judge to sentence him to six months’ probation with a condition of community confinement or home detention.

Jan. 6 Capitol Riot with protestors raising Trump flags and smoke brewing on the Capitol steps

Trump Supporters protesting outside the U.S. Capitol (AP Photo/John Minchillo, File)

Prosecutors said Robertson "anticipated violence" on Jan. 6, and he packed gas masks for himself and Fracker, as well as military food rations, water and a large wooden stick.

Robertson "used his law enforcement training to block Metropolitan Police Officers attempting to hold back the mob," federal prosecutor Elizabeth Aloi wrote in the government's sentencing memo.

TIM SCOTT SAYS 'YES,' TRUMP SHOULD HAVE CHOSEN WORDS CAREFULLY, BUT HOLD RIOTERS ACCOUNTABLE FOR JAN. 6

In a letter to the judge, Robertson said he takes "full responsibility" for his actions on Jan. 6, and said that he was "exposed to lots of pro-Trump, anti-Biden media" while he was passing the time in 2020 with a cancer-stricken friend.

He drank to cope with stress, he said, and fell deep into the "rabbit holes of election conspiracy theories."

Police wearing neon vests preventing protestors from removing a blockade on January 6th

FILE - In this Jan. 6, 2021, file photo, Trump supporters try to break through a police barrier at the Capitol in Washington. Black activists are coming out strongly against a growing narrative among conservatives that equates last week’s deadly siege on the U.S. Capitol to last summer’s Black Lives Matter protests over racial injustice. (AP Photo/John Minchillo, File)

CLICK HERE TO GET THE FOX NEWS APP  

However, he denied ever having "any intention to disrupt Congress" and claimed that Fracker actually destroyed the cell phones, and later lied to the FBI and the court about it.