Julian Assange, the founder of WikiLeaks, has agreed to plead guilty on Monday to a single felony count of illegally obtaining and disclosing national security material. In exchange for his plea, he will be released from a British prison. This marks the end of his long and bitter standoff with the United States.

Iran Press/Europe: A plane carrying Julian Assange landed in Bangkok on Tuesday for refueling. The WikiLeaks founder was on his way to enter a plea deal with the U.S. government that would free him and resolve the legal case spanning years and continents over the publication of classified documents.

A chartered flight from London that Assange’s wife, Stella, confirmed was carrying her husband landed at Don Mueang International Airport. Officials there told The Associated Press the plane was scheduled to continue on to Saipan, the capital of the Northern Mariana Islands, a U.S. commonwealth in the Pacific, where Assange is expected to appear in court on Wednesday.

He’s expected to plead guilty to an Espionage Act charge of conspiring to unlawfully obtain and disseminate classified national defense information, according to the U.S. Justice Department in a letter filed in court.

Assange is expected to return to his home country of Australia after his plea and sentencing. The hearing is taking place in Saipan because of Assange’s opposition to traveling to the continental U.S. and the court’s proximity to Australia, prosecutors said.

British judicial officials confirmed that Assange left the U.K. on Monday evening after being granted bail at a secret hearing last week.

214