Julian Assange was spotted boarding a plane to a remote U.S. territory to attend upcoming hearings for his plea deal Tuesday.

Assange reportedly spent $500,000 on the flight to the territory of Saipan in the Northern Mariana Islands, an intentional decision to avoid setting foot on the U.S. mainland. Assange accepted a plea deal with the American government on Monday.

The WikiLeaks founder spent five years in a British prison as he attempted to prevent his extradition to the U.S. The plea deal included a sentence of five years in prison and it took time served into account, effectively releasing Assange.

Assange will plead guilty to one count of conspiring to obtain and disclose information related to the national defense when he reaches the U.S. federal court in Saipan.

BRITISH COURT RULES JULIAN ASSANGE EXTRADITION ON PAUSE UNTIL US GUARANTEES NO DEATH PENALTY

Julian Assange

Julian Assange was spotted boarding a plane to a remote U.S. territory to attend upcoming hearings in his plea deal Tuesday.

The guilty plea must be approved by a judge. Assange previously spent seven years of refuge in the Ecuadorian Embassy in London after Swedish authorities sought his arrest on rape allegations.

AUSTRALIAN LAWMAKERS SEND LETTER URGING BIDEN TO DROP CASE AGAINST JULIAN ASSANGE ON WORLD PRESS FREEDOM DAY

On Monday, his wife Stella Assange celebrated the deal in a social media post.

"Julian is free!!!!" she wrote on X. "Words cannot express our immense gratitude to YOU- yes YOU, who have all mobilised [sic] for years and years to make this come true. THANK YOU. THANK YOU. THANK YOU."

julian assange

Assange will plead guilty to one count of conspiring to obtain and disclose information related to the national defense when he reaches the U.S. federal count in Saipan. (Photo by Constantin Eckner/picture alliance via Getty Images)

WikiLeaks said Assange was granted bail by the High Court in London and was released at London Stansted Airport where he boarded a plane to return to Australia. 

SUPPORTERS OF JULIAN ASSANGE RALLY AT JUSTICE DEPT. ON 4-YEAR ANNIVERSARY OF DETAINMENT

"As he returns to Australia, we thank all who stood by us, fought for us, and remained utterly committed in the fight for his freedom. Julian's freedom is our freedom," the group said in a social media post.

A protester reads a newspaper outside the High Court in London

Wikileaks said Assange was granted bail by the High Court in London and was released at London Stansted Airport where he boarded a plane to return to Australia.  (AP)

CLICK HERE TO GET THE FOX NEWS APP

The charges against Assange stem from one of the largest publications of classified information in American history. Assange, an Australian citizen and hero to many free press advocates, disclosed tens of thousands of documents related to reports about the U.S. wars in Iraq and Afghanistan, as well as State Department cables and information about the detention of prisoners at Guantanamo Bay.