WikiLeaks' Australian founder Julian Assange has stayed for nearly seven years in Ecuador's embassy in London. Here are the key developments in the affair:
2010: Leaks, arrest warrant
July, October 2010
WikiLeaks releases some 470,000 classified military documents concerning American diplomacy and the wars in Afghanistan and Iraq. It later releases a further tranche of more than 250,000 classified US diplomatic cables.
18 November 2010
A Swedish prosecutor issues a European arrest warrant for Mr Assange over sexual assault allegations involving two Swedish women. Mr Assange denies the claims, saying the young women consented.
Mr 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 allegations a smear campaign.
2011: Extradition ruling
A British judge rules that Mr Assange can be extradited to Sweden. Mr Assange fears Sweden will hand him over to US authorities who could prosecute him for publishing the documents.
2012: Refuge at embassy
Mr Assange takes refuge in the Ecuadoran embassy in London. He requests, and is later granted, political asylum.
2013: Safe-conduct refused
Ecuador asks Britain in vain to allow Mr Assange to fly to Quito.
2016: UN appeal
Ecuador rejects an offer by Swedish prosecutors to question Mr Assange in London.
The UN Working Group on Arbitrary Detention says Mr Assange has been "arbitrarily detained" and should be able to claim compensation from Britain and Sweden. Britain and Sweden rebuff the non-binding ruling.
2017: Sex case closed
WikiLeaks says Mr Assange could travel to the US to face investigation after one of the site's main sources Chelsea Manning is given clemency, but only if his rights were "guaranteed".
Swedish prosecutors say they have closed their seven-year sex assault investigation. British police say they would still arrest Mr Assange if he leaves the embassy as he breached the terms of his bail in 2012.
Ecuador grants Mr Assange nationality. Britain refuses Ecuador's request to accord Mr Assange diplomatic status, which would allow him to leave the embassy without being arrested.
2018: Ecuador seeks solution
Ecuador says it is seeking a mediator to resolve Assange's "untenable" situation.
Mr Assange loses a bid to have his British arrest warrant cancelled on health grounds.
Ecuador cuts off Mr Assange's communications alleging he broke an agreement on interfering in other countries' affairs.
Ecuador imposes new conditions on Mr Assange in the embassy, warning that breaching them could lead to the "end of asylum".
US prosecutors inadvertently disclose the existence of a sealed indictment against Mr Assange.
2019: Ecuador complaint
April 2019: Ecuador's President Lenin Moreno says Mr Assange has "repeatedly violated" the conditions of his asylum at the embassy.
An independent rights expert was due to visit Mr Assange at the embassy on 25 April to assess whether the violation allegations merit investigation.
11 April: British police say they have arrested Mr Assange at the embassy after his asylum was withdrawn.
He was convicted of skipping bail and will be sentenced at a later date.
US officials later announced he had been charged with conspiracy to commit computer intrusion paving the way for his extradition to the US.