SAN RAMON, Calif. — A long-running Silicon Valley soap opera took an unexpected twist Wednesday after outgoing President Donald Trump pardoned a former Google engineer for stealing self-driving car secrets shortly before joining Uber.

Trump’s surprise pardon of Anthony Levandowski enables him to avoid serving an 18-month sentence in federal prison that U.S. District Judge William Alsup left no doubt last summer he believed was warranted.

“This is the biggest trade secret crime I have ever seen,” Alsup said. “This was not small. This was massive in scale.”

Levandowski pled guilty to heisting some of Google’s breakthroughs in self-driving cars before he left the company in 2016 and later joined Uber to help the ride-hailing service build its own robotic vehicles.

In a statement about Levandowski’s pardon, the Trump administration cited other comments that Alsup made about the engineers brilliant mind. “Mr. Levandowski has paid a significant price for his actions and plans to devote his talents to advance the public good,” the statement said.

Levandowski didn’t land in prison after his sentencing last year. Alsup delayed his sentence during the pandemic to reduce Levandowski’s chances of becoming infected with COVID-19. A hearing on the timing of Levandowski’s prison sentence had been scheduled for Feb. 9.

The Trump administration cited the support of 13 people as a major influence for granting the pardon. The group pushing for the pardon included three of Levandowski’s attorneys in his criminal case, as well as Peter Thiel, a PayPal co-founder. Thiel ranks among the most influential investors in the tech industry and was a prominent supporter of Trump who spoke at the Republican National Convention in 2016.

Trump also called out five other people who either work closely with Thiel or have run startups that received investments from Thiel’s various funds.

That group consists of: Blake Masters, who co-wrote a book with Thiel and serves as chief operating officer of Thiel Capital; Trae Stephens, a partner at Thiel’s Founders Fund and who on Trump’s transition team after his 2016 election; Palmer Luckey, the co-founder of virtual reality startup, Oculus, that was backed by Thiel before it was sold to Facebook; Ryan Petersen, CEP of Flexport, another tech firm backed by Thiel; and James Proud, who also once ran a tech firm called Hello backed by Thiel.

Neither Thiel nor Stephens responded to a message left for them at the Founders Fund. Masters and Petersen didn’t immediately respond to a request for comment about their reasons for supporting Levandowski’s pardon. Efforts to reach Proud were unsuccessful.

The three Levandowski lawyers who lobbied for his pardon — Miles Ehrlich, James Ramsey and Amy Craig — have been trying to collect on a $5 million bill that they say Levandowski still owes their firm, according to court documents. Levandowski filed for bankruptcy last March after being ordered to pay Google $179 million as part of an arbitration dispute surrounding bonuses paid to him before he left the company.

The lawyers had been seeking to claim $1.5 million that had been held in a trust account, but a bankruptcy judge denied that request last year.

Besides resulting in criminal charges, Levandowski’s skullduggery also was at the heart of a high-stakes lawsuit filed against Uber by Waymo, a spinoff born from Google’s work on robotic vehicles.

Uber denied ever using the technology that Levandowski took from Google. But the ride-hailing service wound up paying $245 million to settle the case a few days into a high-profile trial that saw its former CEO Travis Kalanick take the witness stand to discuss his friendship with Levandowski.