Here are key dates in Julian Assange's extradition battle as the WikiLeaks founder loses his new court bid Tuesday to cancel the UK arrest warrant hanging over him.
In November 2010, a Swedish prosecutor issues a European arrest warrant for Assange on sexual assault allegations involving two Swedish women. Assange denies the claims, saying the young women consented.
WikiLeaks starts releasing more than 250,000 classified US diplomatic cables, revealing frank assessments of US officials as well as the views of other governments.
Some 500,000 classified military documents concerning American diplomacy and the wars in Afghanistan and Iraq had already been released by Wikileaks earlier that year.
In December, Assange turns himself in to police in London and is placed in custody pending a ruling on the Swedish extradition request. He is later released on bail and calls the Swedish rape allegations a smear campaign.
In February 2011, a British judge rules Assange can be extradited to Sweden. In November Britain's High Court rejects an appeal against his extradition. Assange fears Sweden will hand him over to US authorities who could prosecute him for publishing the documents and possibly sentence him to death.
In 2012 Assange requests, and is later granted political asylum at the Ecuadorian embassy in London. The following year, Ecuador demands that Britain allows Assange to fly to Quito.
In July 2014 a Swedish court upholds the European arrest warrant against Assange and in November Assange loses an appeal against the arrest warrant.
Also in 2014, Assange files a complaint against Sweden and Britain with the UN Working Group on Arbitrary Detention.
His lawyers later petition Sweden's Supreme Court to quash the arrest warrant in February 2015.
The following month, Swedish prosecutors offer to question Assange in London. At Quito's demand, an Ecuadorian prosecutor does the questioning, which takes place in November.
In February 2016, the UN panel confirms its view that Assange has been "arbitrarily detained," saying he should be able to claim compensation from Britain and Sweden. Britain rejects the ruling.
The Stockholm appeals court in September rejects a request by Assange to lift the arrest warrant in light of the UN panel's non-binding legal opinion.
In January 2017, WikiLeaks claims "victory" after then US president Barack Obama commutes the sentence of Chelsea Manning, a soldier who leaked a huge amount of defence department files published by WikiLeaks, and who is released on May 17.
Two days later, Swedish prosecutors say they have closed their seven-year rape investigation. In London, police say they are "obliged" to arrest Assange if he leaves the embassy, for breaching the terms of his bail in 2012.
In January, days after announcing it is seeking a mediator to resolve the standoff with Britain, Ecuador says it has granted Assange citizenship. The Australian became an Ecuadorian citizen on December 12.
Ecuador asks London to recognise Assange as a diplomat, which would give him immunity from arrest. Britain refuses to do so.
Later in the month Ecuador's President Lenin Moreno describes Assange as an "inherited problem" that has created "more than a nuisance" for his government.
Doctors say his embassy stay is dangerous to his health.
On January 26 Assange's lawyers ask a court to lift the arrest warrant. The court rejects the bid on February 6 and then a second attempt on February 13.