A British judge on Monday refused to give Venezuela control of over $1 billion in gold sitting in a Bank of England vault, ruling that it is unlawful to give it to the President Nicolás Maduro since Britain does not recognize him as the president.

Maduro has demanded the gold to help his cash-starved nation fight the coronavirus pandemic.

But the central bank for the United Kingdom, whose government recognizes Venezuelan opposition leader Juan Guaidó as his country’s legitimate leader, had refused to hand it over to Maduro’s socialist administration.

FILE - In this Feb. 21, 2020 file photo, opposition leader Juan Guaido meets with union workers and supporters in Caracas, Venezuela.  The political battle over control of Venezuela has turned to a $1 .8 billion stack of gold bars sitting in the Bank of England's vault in London, where a judge is expected to decide soon on who has the rightful claim to the bullion. Venezuelan President Nicolas Maduro says he needs the gold to help his cash-starved nation fight the coronavirus pandemic. But the central bank for the United Kingdom, whose government recognizes Guaidó as his country's legitimate leader, has refused to hand it over to Maduro's socialist administration. (AP PhotoAriana Cubillos, File)

FILE - In this Feb. 21, 2020 file photo, opposition leader Juan Guaido meets with union workers and supporters in Caracas, Venezuela. The political battle over control of Venezuela has turned to a $1 .8 billion stack of gold bars sitting in the Bank of England's vault in London, where a judge is expected to decide soon on who has the rightful claim to the bullion. Venezuelan President Nicolas Maduro says he needs the gold to help his cash-starved nation fight the coronavirus pandemic. But the central bank for the United Kingdom, whose government recognizes Guaidó as his country's legitimate leader, has refused to hand it over to Maduro's socialist administration. (AP PhotoAriana Cubillos, File)

Guaidó has sought to preserve the gold stash at the Bank of England to keep it out of the hands of the Maduro government.

Banco Central de Venezuela sought to release the gold, which it wants to sell for food and medical equipment that is desperately needed to tackle the COVID-19 pandemic.

A lawyer representing Maduro's side promised to appeal.

Sarosh Zaiwalla said in a statement that the judgment “entirely ignores the reality of the situation on the ground” in Venezuela.

“Mr Maduro’s government is in complete control of Venezuela and its administrative institutions, and only it can ensure the distribution of the humanitarian relief and medical supplies needed to combat the coronavirus pandemic,” he said. “This outcome will now delay matters further, to the detriment of the Venezuelan people whose lives are at risk.”