A former enforcement attorney for the Securities and Exchange Commission was sentenced Friday to eight years in prison for his role in a series of multimillion dollar pump-and-dump stock fraud schemes.

Dallas-based attorney Phillip Offill Jr., 51, was convicted by a jury earlier this year on 10 counts of wire fraud and conspiracy. He testified that he was acting within the law, but the jury rejected his defense, and so too did U.S. District Judge Liam O’Grady.