The JetBlue pilot who left his cockpit while flying from New York to Las Vegas in March and allegedly screamed about terrorists was found not guilty Tuesday by reason of insanity.
The federal judge's ruling in Texas came during a bench trial for pilot Clayton Osbon, noting he suffered from a "severe mental disease or defect."
Osbon had already been deemed mentally competent to stand trial.
The flight was forced to make an emergency landing in Amarillo, Texas on March 27 after Osbon went on a wild rant in the plane's cabin.
He was restrained by passengers and crew.
Osbon will now be taken to a federal mental health facility for examination until another hearing later in the summer.
The judge will decide then whether Osbon can be released or committed to a mental facility.