Wikileaks founder Julian Assange has pleaded guilty in a US court

Under a deal allowing him to walk free following a 14-year legal battle.

He entered the formal plea to a single charge in the Northern Mariana Islands

An American territory in the Pacific, two days after leaving a British prison.

In return, he was sentenced to time already served and released to fly to his native Australia

US officials were pursuing the 52-year-old over a huge disclosure of secret files in 2010

Assange arrived at court on Wednesday morning local time in Saipan

The capital of the Northern Marian Islands, alongside a team that included Australia's ambassador to the US Kevin Rudd.