Kim Dotcom, Megaupload founder, has been granted bail by a New Zealand court.
Kim Dotcom, 38, has been in prison since 20 January at the request of the US authorities.
Megaupload founder faces charges in the US for one of the biggest copyright infringement cases in the country’s history.
The file-sharing site is accused of costing copyright holders more than $500 million in lost revenue.
North Shore District Court Judge Nevin Dawson overturned two previous rulings that Kim Dotcom, who is a German national, was an “extreme flight risk” because he had the money and connections to get out of the country.
The judge said the risk had diminished because all his funds were seized and no new assets or bank accounts had been uncovered.
Speaking to reporters in Auckland, Kim Dotcom said he was “relieved to go home to see my family, my three little kids and my pregnant wife”.
On 17 February Kim Dotcom was charged with three new criminal copyright counts and five new wire fraud counts.
That is on top of one count of racketeering, one count of conspiracy to commit money laundering and two counts of criminal copyright infringement charges.
US authorities are seeking to extradite Kim Dotcom, who changed his name legally from Schmitz, and three other co-defendants who had earlier been granted bail.
The US Justice Department and Federal Bureau of Investigation allege that Megaupload and its related sites made millions in ‘criminal proceeds’ by sharing pirated copies of movies, music and other content.
Founded in 2005, Megaupload was shut down by authorities last month.
They also seized millions of dollars worth of assets owned by Kim Dotcom including luxury cars, artwork and investments.
Kim Dotcom has denied any criminal misconduct and has said he will fight extradition to the US.