Paul Grewal, a magistrate judge in San Jose federal court, is leaving his post there to join social network Facebook as deputy general counsel in charge of litigation.
Grewal, who confirmed the move to Recode, has been on the bench since 2010. He has been on the court's technology and patent committees.
Facebook said Grewal will start in late June and report to general counsel Colin Stretch.
Before joining the bench as a magistrate, Grewal worked at the law firms Pillsbury Madison & Sutro and at Day Casebeer Madrid & Batchelder as well as serving as a law clerk to Federal Circuit appeals court judge Arthur J. Gajarsa.
His hiring was reported earlier Thursday by San Francisco-area legal newspaper The Recorder.
This article originally appeared on Recode.net.