Two Los Angeles County sheriff’s deputies say they were framed for lying about a drug bust and that prosecutors knowingly withheld evidence that would have spared them a trial, lost wages and public humiliation, according to a lawsuit filed Wednesday.

The lawsuit names former Los Angeles County Undersheriff Paul Tanaka and former county prosecutor Kevin Stennis, who now serves as a Los Angeles County Superior Court judge.

Deputies Robert Lindsey and Charles Rodriguez were accused in 2013 of writing false reports after a surveillance video apparently contradicted their accounts of the 2011 arrest of an accused drug dealer. They were were acquitted in 2015 of perjury and conspiracy charges stemming from the arrest.

In their civil rights complaint, Lindsey and Rodriguez allege that the whole ordeal was the result of a sham investigation orchestrated by former Los Angles County Undersheriff Paul Tanaka as part of a vendetta against Lindsey’s father, a retired Sheriff’s Department commander. According to the lawsuit, Tanaka told the elder Robert Lindsey his career “was over” after Lindsey refused to falsify exam results so that Tanaka’s chosen deputies could be promoted to lieutenant in 2002.