The judge handling Kim Dotcom's extradition hearing described the US as 'the enemy' at a internet conference last week.
Judge David Harvey's comments at the NetHui conference has caused his impartiality to be questioned. He has now stepped down from overseeing the case.
The outburst happened during a discussion about copyright law, in which Judge Harvey read out a tweet saying 'We have met the enemy and he is US' - a play on the saying 'We have met the enemy and he is us'.
This proved the wrong move for the judge as the comment attracted attention due to him currently dealing with the US government's request for New Zealand to hand over employees of Megaupload to face copyright and fraud charges.
File-sharing site Megaupload was shut down and Dotcom, along with four others, were arrested in January of this year.
Want to receive up-to-the-minute tech news straight to your inbox? Then click here to sign up for the completely free PCR Daily Digest and Newsflash email services. You can also follow PCR on Twitter and Facebook.