The British agency GCHQ has denied allegations from the U.S. administration that it had helped former U.S. President Barack Obama to spy on President Donald Trump when he was running for the White House.

In a statement seen by The Guardian, a GCHQ spokesperson described the allegations as “nonsense”, “ridiculous” and should therefore be “ignored.”

“Recent allegations made by media commentator judge Andrew Napolitano about GCHQ being asked to conduct wiretapping against the then president-elect are nonsense.”

“They are utterly ridiculous and should be ignored,” the GCHQ statement said.

The accusations emerged earlier this week when Fox News judicial analyst Napolitano said that three intelligence sources told him that Obama had used the British GCHQ to wiretap Trump. The allegations were then repeated by White House press secretary Sean Spicer Thursday.

Follow CNBC International on Twitter and Facebook.