A Saudi prisoner at the Guantanamo Bay detention center who was suspected of trying to join the 9/11 hijackers has been sent back to his home country for treatment for mental illness, the Department of Defense said Monday.

Mohammad Ahmad al-Qahtani was flown back to Saudi Arabia, to a treatment facility, from the U.S. base in Cuba after a review board including military and intelligence officials concluded he could be safely released after 20 years in custody.

sun sets behind the closed Camp X-Ray detention facility, on April 17, 2019, in Guantanamo Bay Naval Base, Cuba.

In this photo reviewed by U.S. military officials, the sun sets behind the closed Camp X-Ray detention facility, on April 17, 2019, in Guantanamo Bay Naval Base, Cuba. A Saudi prisoner at the Guantanamo Bay detention center who was suspected of trying to join the 9/11 hijackers has been sent back to his home country for treatment for mental illness.  (AP Photo/Alex Brandon, File)

SUPREME COURT SIDES WITH GOVERNMENT IN GITMO STATE SECRETS CASE

The 46-year-old prisoner has suffered from mental illness, including schizophrenia, since childhood, according to medical examinations and records obtained by his lawyers. The U.S. dropped plans to try him after a Bush administration legal official concluded he had been tortured at Guantanamo.

With his release, there are now 38 prisoners left at the detention center. He is the second released under President Biden, who has said he intends to close the facility.

RUSSIA INVADES UKRAINE: LIVE UPDATES 

"The United States appreciates the willingness of Saudi Arabia and other partners to support ongoing U.S. efforts toward a deliberate and thorough process focused on responsibly reducing the detainee population and ultimately closing of the Guantanamo Bay facility," the Department of Defense said in a statement announcing the repatriation of al-Qahtani.

However, only half the men held there have been cleared for release, and no decision has been made about what to do with the rest, including those who still face trial by military commission.

The Defense Department notified Congress of its intention to transfer al-Qahtani in February, prompting outrage from some Republicans.

control tower is seen through the razor wire inside the Camp VI detention facility in Guantanamo Bay Naval Base, Cuba

In this April 17, 2019, photo, reviewed by U.S. military officials, the control tower is seen through the razor wire inside the Camp VI detention facility in Guantanamo Bay Naval Base, Cuba. The Biden administration has been quietly laying the groundwork to release prisoners from the Guantanamo Bay detention center and at least move closer to being able to shut it down.  (AP Photo/Alex Brandon, File)

AT LEAST 22 INJURED IN BRAWL AT MEXICAN SOCCER MATCH

Lawyers for al-Qahtani obtained a federal court order in 2020 requiring a medical examination of the prisoner by an independent medical panel, which could have ordered his repatriation under Army regulations if the diagnosis of his doctors was confirmed. The Trump administration contested the order, a legal fight that was dropped under Biden.

"After two decades without trial in U.S. custody, Mohammed will now receive the psychiatric care he has long needed in Saudi Arabia, with the support of his family," said Ramzi Kassem, a law professor at the City University of New York who represented al-Qahtani with help from students for over a decade. "Keeping him at Guantanamo, where he was tortured, and then repeatedly attempted suicide, would have been a likely death sentence."

In August 2001, al-Qahtani was turned away from the U.S. at the Orlando airport by immigration officers who were suspicious of his travel. The lead Sept. 11 hijacker, Mohammed Atta, was going to pick him up to take part in the plot, according to previously released documents.

U.S. forces later captured him in Afghanistan and sent him to Guantanamo, where he was subjected to brutal interrogations that the Pentagon legal official in charge of war crimes commissions said amounted to torture.

That treatment included beatings, exposure to extreme temperatures and noise, sleep deprivation and extended solitary confinement. An FBI official in 2002 observed al-Qahtani speaking to non-existent people, hearing voices and crouching in a corner of his cell while covering himself with a sheet for hours at a time.

the outdoor recreation area of the Camp V detention facility is seen, on April 17, 2019, in Guantanamo Bay Naval Base, Cuba.

In this photo reviewed by U.S. military officials, the outdoor recreation area of the Camp V detention facility is seen, on April 17, 2019, in Guantanamo Bay Naval Base, Cuba.  (AP Photo/Alex Brandon, File)

CLICK HERE TO GET THE FOX NEWS APP

The 38 remaining prisoners at Guantanamo include 19 who have been approved for repatriation or resettlement by the review board. There are another seven who are eligible for review. Ten prisoners face trial by military commission, including five charged with involvement in the Sept. 11, 2001, attacks. Their death penalty case has been stalled for years in the pretrial phase.

The remaining two prisoners at the base have been convicted, one of whom, former Maryland resident Majid Khan, is nearing the completion of his sentence under a plea deal.