Sweden has decided to drop the rape investigation into Wikileaks founder Julian Assange.
Top prosecutor Marianne Ny said his arrest warrant was being revoked as it was impossible to serve him notice.
Mr Assange, 45, has lived in the Ecuadorean embassy in London since 2012. He fears extradition to Sweden would lead to extradition to the US where he is wanted over leaks.
Ecuador has called on the UK to allow him safe passage out of the country.
However, police in London said they would still be obliged to arrest him if he left.
The Metropolitan Police Service (MPS) said Mr Assange still faced the lesser charge of failing to surrender to a court, an offence punishable by up to a year in prison or a fine.
But the UK has not commented on whether it has received an extradition request from the US, where Mr Assange could face trial over the leaking of hundreds of thousands of secret US military and diplomatic documents.
Mr Assange’s Swedish lawyer, Per Samuelson, said the prosecutor’s decision on Friday represented “a total victory” for his client.
But the Wikileaks founder responded angrily in a tweet: “Detained for 7 years without charge… while my children grew up and my name was slandered. I do not forgive or forget.”
The plaintiff in the rape case was “shocked” by the decision, her lawyer said, and maintained her accusations against Mr Assange, Agence France-Presse reported.
The decision coincided with the release by Wikileaks of another tranche of documents about the CIA’s technical capabilities.
Why has the case been dropped?
At a press briefing on Friday, Ms Ny said that by remaining in the embassy in London Mr Assange had evaded the exercise of the European Arrest Warrant (EAW) that would have seen him extradited to Sweden.
She said that under Swedish law a criminal investigation needed to be conducted “as quickly as possible”.
Sweden did not expect Ecuador’s co-operation in formally notifying Mr Assange of the allegations against him, a necessary step in proceeding with the case, she added.