The UK’s first new deep coalmine in 30 years will not be allowed to go ahead after a ruling in the high court.

On Friday morning, Justice Holgate ruled that plans to build the facility in Whitehaven, Cumbria, would not proceed, in what campaigners called a “victory for the environment”.

New fossil fuel projects are thought to be on shakier legal ground after the precedent set by a landmark supreme court decision that quashed planning permission granted for an oil drilling well at Horse Hill on the Weald in Surrey. The judgment found the climate impact of burning coal, oil and gas must be taken into account when deciding whether to approve projects. This was the first court decision on plans for a new fossil fuel development since the Horse Hill ruling.

Holgate agreed with Friends of the Earth that Michael Gove, when he was secretary of state for levelling up, acted unlawfully in accepting a claim by West Cumbria Mining (WCM) that the mine would be “net zero” and have no impact on the country’s ability to meet the emissions cuts required under the Climate Change Act 2008, because it was relying on offsetting through purchasing carbon credits from abroad. UK government policy does not allow for reliance on international offsets to meet carbon budgets.

The new Labour government this year withdrew its support from the Whitehaven mine in the Cumbria legal case. Lawyers acting for Angela Rayner, the secretary of state for housing, communities and local government, said there had been an “error in law” in the decision to grant planning permission for the mine in December 2022.