A former federal prosecutor sued the Justice Department alleging he was unlawfully fired hours after an online commentator surfaced a nearly decade-old blog post he authored that was critical of President Donald Trump.

Will Rosenzweig, who worked as an assistant US attorney in the Southern District of Florida for five years, filed the lawsuit Friday as Todd Blanche, who is a named defendant in the lawsuit, appeared to overcome hurdles in the way of his confirmation as Trump’s next Attorney General.

Rosenzweig was fired in September during Rosh Hashanah, two weeks before jury selection was scheduled to begin in a complex Medicare fraud case he was heavily involved in.

“DOJ’s removal of Mr. Rosenzweig as a perceived political enemy of the incumbent political party was neither isolated nor inadvertent, but rather part of a wider campaign to conduct political firings,” the lawsuit alleges. Rosenzweig is asking for his job back in addition to backpay and damages.

CNN has reached out to the Justice Department for comment.