Ecuador has agreed to allow Wikileaks founder Julian Assange to be questioned by the Swedish authorities at the Ecuadorean embassy in London.
Mr Assange took refuge there three years ago to avoid extradition to Sweden to face allegations of sexual assault against two women in 2010.
He denies the accusations and says he fears Sweden would extradite him to the United States for possible trial there.
In 2010 Wikileaks published a huge number of US classified documents.
Britain has accused Ecuador of perverting the course of justice by allowing Mr Assange to remain in its embassy.
A spokeswoman for the Foreign Office said, "It is for the Swedish prosecutor to decide how they now proceed with the legal case."
The agreement was signed in Ecuador after about six months of investigations.
The co-ordinator of Mr Assange's international legal defence team, Baltasar Garzon said, "Julian Assange's rights need to be respected by Sweden and the United Kingdom. These countries have failed to do so until now.
"Julian Assange's only demands are that his fundamental rights are acknowledged and respected, including the asylum granted to him by Ecuador."
According to the British news agency PA, it is unlikely Mr Assange will be questioned by Sweden until the New Year.