Elon Musk took the witness stand Friday to defend a 2018 tweet claiming he had lined up the financing to take Tesla private in a deal that never came close to happening, according to AP.

The tweet resulted in a $40 million settlement with securities regulators. It also led to a class-action lawsuit alleging he misled investors, pulling him into court Friday.

The mercurial billionaire took the witness stand wearing a dark suit on the third day of a civil trial in San Francisco that his lawyer unsuccessfully tried to move to Texas, where Tesla is now headquartered, on the premise that media coverage of his tumultuous takeover of Twitter had tainted the jury pool.

© Copyright LaPresse