The fraudster says he got defrauded.

“Pharma Bro” Martin Shkreli, who is doing time in federal prison in Pennsylvania for defrauding investors, filed a lawsuit in federal court in Manhattan on Friday claiming that three people connected with the pharmaceutical company he created ripped him off to the tune of $30 million.

Shkreli claims that two members of the board of directors for Retrophin, which he founded in 2011, and a consultant for the company tricked him into signing a fraudulent document that caused his ouster from the company — which he says led him to miss out on a big chunk of the company’s profits.

The three defendants, who are all California residents, “had little to do with the success of the company but were instead driven by their egos, jealousy, and greed, were successful in only one thing: creating and carrying out a scheme to oust Mr. Shkreli from the company for their selfish benefit,” Shkreli alleges in his complaint.

Retrophin was at the heart of Shkreli’s 2017 securities fraud trial: He was convicted of scheming to prop up the company’s stock price as well as defrauding investors in two hedge funds that he also created, MSMB Healthcare and MSMB Capital.

After his conviction, he was sentenced to seven years in prison.

Shkreli apparently has been keeping busy behind bars. A few months ago, the Wall Street Journal revealed that he’s been running another pharmaceutical company, Phoenixus AG, from prison using a contraband cellphone.

That stunt landed him in solitary confinement and led him to be transferred from the minimum-security prison in Fort Dix, NJ, to a new facility in Allenwood, Pa.