The wife of a California radiologist accused of driving his family off a cliff in January told authorities that her husband was depressed and needed a psychological evaluation, according to a newly unsealed search warrant affidavit.

Neha Patel had told rescuers her husband, Dharmesh Patel, deliberately drove his Tesla off a 330-foot San Mateo County cliff on Jan. 2 with her and their two young children inside the vehicle, according to the documents obtained and cited by the San Francisco Chronicle. Authorities had said the Tesla plummeted more than 250 feet and flipped several times before landing on its wheels, jamming itself against the cliff just feet from the surf.

All four survived with mostly minor injuries and one official called the incident “an absolute miracle.”

“He drove off. He’s depressed,” Neha Patel, 41, told a California Highway Patrol officer, according to the Chronicle. “He said he was going to drive off the cliff. He purposely drove off.”

Dharmesh Patel has pleaded not guilty to three counts of attempted murder and is in custody without bail. A preliminary hearing is scheduled for June 12.

2018 NEW YORK CRASH:Limo service manager convicted of manslaughter in deadly 2018 New York crash

Court documents: Doctor blames Tesla malfunction

Patel blamed the Tesla for the crash and said he pulled off the road to check on a potential flat tire, according to the warrant. But witness testimony did not appear to support his claim.