But within weeks there was a warrant out for his arrest and he was being investigated for rape and sexual molestation.
Until recently he was taking sanctuary in the Ecuadorean Embassy in London, arguing he won't receive justice if he's taken to Sweden and that US authorities are building a case for his extradition.
In this program from 2012, Four Corners reporter Andrew Fowler examines in detail what happened in those crucial weeks while Julian Assange was in Sweden. What was the nature of his relationship with the two women who claim he assaulted them? And what did they tell police that led the authorities to seek his arrest?
Both Assange and his supporters believe the attempt by authorities to force his return to Sweden is simply the first step in a plan to see him extradited to the United States.
Four Corners looks at claims the United States is working hard to unearth evidence that would lead to a charge of "conspiracy to commit espionage" being made against Assange - which in turn would be used in his extradition from Sweden.
The program also documents the harassment experienced by Assange's supporters across the globe - including his Australian lawyer - and the FBI's attempts to convince some to give evidence against him.