Prosecutors on Thursday asked an appeals court to reinstate embezzlement charges against imprisoned ex-pol John Sampson — so they can bring him to trial all over again.

The feds had originally charged the disgraced former Brooklyn state senator with two counts of embezzlement for pocketing more than $400,000 while acting as a court-appointed referee from the late 1990s to 2008.

Yet Brooklyn federal court Judge Dora Irizarry later tossed those charges, saying they weren’t supported under the law.

Assistant US Attorney Alex Solomon argued Thursday it should have been up to a jury to determine whether or not Sampson embezzled the funds.

Sampson, 52, was sentenced to five years behind bars in January for obstruction of justice and witness tampering for lying to the FBI during its investigation.

Meanwhile, defense attorneys for Sampson asked the three jurists to toss the entire case against their client, saying he’d been charged under the wrong statute related to witness tampering.

The panel declined to immediately rule.

Sampson surrendered last May and is serving his prison time in Fairton, NJ.