The chief legal and administrative officer of TuSimple Holdings, a developer of self-driving technologies for trucks, is leaving the company just as its legal challenges heat up.

James Mullen, who has been legal chief since November 2020, notified the company on Aug. 31 that he will step down Sept. 30, according to a TuSimple filing with the U.S. Securities and Exchange Commission.