LONDON (AP) — A British judge sentenced WikiLeaks founder Julian Assange on Wednesday to 50 weeks in prison for skipping bail seven years ago and holing up in the Ecuadorian embassy.
Judge Deborah Taylor said it was hard to imagine a more serious version of the offense as she gave the 47-year-old hacker a sentence close to the maximum of a year in custody.
She said Assange's seven years in the embassy had cost British taxpayers 16 million pounds ($21 million), and said he sought asylum as a "deliberate attempt to delay justice."
The white-haired Assange stood impassively with his hands clasped while the sentence was read. His supporters in the public gallery at Southwark Crown Court chanted "Shame on you" at the judge as Assange was led away.
The Australian secret-spiller sought asylum in the South American country's London embassy in June 2012 to avoid extradition to Sweden, where he was wanted for questioning over rape and sexual assault allegations.
Related: Julian Assange
WikiLeaks founder Julian Assange makes a speech from the balcony of the Ecuadorian Embassy, in central London, Britain February 5, 2016. REUTERS/Peter Nicholls/Files
A supporter of Wikileaks founder Julian Assange holds a banner outside the Ecuadorian embassy in London as he marks three years since Assange claimed asylum in the embassy on June 19, 2015. WikiLeaks founder Julian Assange clocks up three years inside the Ecuadoran embassy in London today, after claiming that Swedish prosecutors cancelled a landmark meeting in his case earlier this week. AFP PHOTO / JUSTIN TALLIS (Photo credit should read JUSTIN TALLIS/AFP/Getty Images)
A supporter of Wikileaks founder Julian Assange holds banners outside the Ecuadorian embassy in London as he marks three years since Assange claimed asylum in the embassy on June 19, 2015. WikiLeaks founder Julian Assange clocks up three years inside the Ecuadoran embassy in London today, after claiming that Swedish prosecutors cancelled a landmark meeting in his case earlier this week.
AFP PHOTO / JUSTIN TALLIS (Photo credit should read JUSTIN TALLIS/AFP/Getty Images)
Julian Assange, Founder and Editor-in-Chief of WikiLeaks speaks via video link during a press conference on the occasion of the ten year anniversary celebration of WikiLeaks in Berlin, Germany, October 4, 2016. REUTERS/Axel Schmidt TPX IMAGES OF THE DAY
WikiLeaks founder Julian Assange appears on screen via video link during his participation as a guest panelist in an International Seminar on the 60th anniversary of the college of Journalists of Chile in Santiago, Chile, July 12, 2016. REUTERS/Rodrigo Garrido
File photo dated 05/02/16 of WikiLeaks founder Julian Assange, who will publish more confidential documents on the US Central Intelligence Agency once a "key attack code" has been disarmed, he has revealed.
File photo dated 5/2/2016 of Julian Assange who has defended the release of emails by WikiLeaks about US presidential candidate Hillary Clinton.
WikiLeaks founder Julian Assange speaking from the balcony of the Ecuadorian Embassy in London where he has been living for more than three years after the country granted him political asylum.
BERLIN, GERMANY - OCTOBER 4: WikiLeaks founder Julian Assange participates via video link at a news conference marking the 10th anniversary of the secrecy-spilling group in Berlin, Germany on October 4, 2016.
(Photo by Maurizio Gambarini/Anadolu Agency/Getty Images)
The Spanish journalist Ignacio Ramonet presents in Quito, Ecuador, on June 23, 2016 the Ecuador 's book " When Google found Wikileaks". Julian Assange made his appearance to the world in 2010 with the publication by WikiLeaks of thousands of secret documents revealing conspiracies , corruption, crimes , lies, and incriminate several governments and particularly the United States as the main actor illegalities. (Photo by Rafael Rodrï¿½uez/ACGPHOTO/NurPhoto via Getty Images)
LONDON, ENGLAND - FEBRUARY 05: Wikileaks founder Julian Assange prepares to speak from the balcony of the Ecuadorian embassy where he continues to seek asylum following an extradition request from Sweden in 2012, on February 5, 2016 in London, England. The United Nations Working Group on Arbitrary Detention has insisted that Mr Assange's detention should be brought to an end. (Photo by Carl Court/Getty Images)
LONDON, ENGLAND - FEBRUARY 05: A panel of WikiLeaks representitives and press look on as WikiLeaks founder Julian Assange speaks at a press conference at the Frontline Club via video link from the Ecuadorian Embassy in London on 5 February 2016 in London, England. Mr Assange's speech comes a day after it was announced that the UN panel ruled he was being unlawfully detained at the Ecuadorian Embassy. (Photo by Chris Ratcliffe/Getty Images)
Australian founder of whistleblowing website, 'WikiLeaks', Julian Assange speaks to media after giving a press conference in London on July 26, 2010. The founder of a website which published tens of thousands of leaked military files about the war in Afghanistan said Monday they showed that the 'course of the war needs to change'. In all, some 92,000 documents dating back to 2004 were released by the whistleblowers' website Wikileaks to the New York Times, Britain's Guardian newspaper, and Germany's Der Spiegel news weekly. Assange also used a press conference in London to dismiss the White House's furious reaction to the disclosures. AFP PHOTO/Leon Neal (Photo credit should read LEON NEAL/AFP/Getty Images)
MELBOURNE, AUSTRALIA - MAY 21: (AUSTRALIA OUT) Wikileaks founder Julian Assange poses during a portrait shoot on May 21, 2010 in Melbourne, Australia. (Photo by Mark Chew/Fairfax Media/Fairfax Media via Getty Images).
Discover More Like This
BACK TO SLIDE
Assange's lawyer Mark Summers told a courtroom packed with journalists and WikiLeaks supporters that his client sought refuge in the Ecuadorian Embassy because "he was living with overwhelming fear of being rendered to the U.S."
He said Assange had a "well-founded" fear that he would be mistreated and possibly sent to the U.S. detention camp for terrorism suspects at Guantanamo Bay.
Summers read a letter from Assange apologizing for his behavior in 2012 and saying "I did what I thought was best."
"I found myself struggling with terrifying circumstances," the letter said.
Assange was arrested April 11 after Ecuador revoked his political asylum, accusing him of everything from meddling in the nation's foreign affairs to poor hygiene.
He faces a separate court hearing Thursday on a U.S. extradition request. American authorities have charged Assange with conspiring to break into a Pentagon computer system.