Things are just getting worse for the coal industry in Australia. On Wednesday, what was going to be the biggest coal project in the country was overturned in the Federal Court because of concerns over two endangered species.
The court ruled that the environment minister Greg Hunt did not properly consider the effect of the Carmichael mine in Queensland's Galilee Basin on the yakka skink and the ornamental snake.
As a result, Indian mining company Adani does not have legal grounds to start building the massive mine and the minister will have to revise the project.
Lawyers for the Mackay Conservation Fund, who brought the case before the court, also alleged that Greg Hunt failed to consider Adani's environmental history and global greenhouse emissions from burning the coal produced by the mine.
Environmental activists are absolutely stoked, saying the decision could even shut down the mine for good.
But the mine owners insist it's just an administrative hiccup.
In a statement, Adani described the decision as being based on a "technical error from the Federal Environment Department".
"It should be noted the approval did include appropriate conditions to manage the species protection of the yakka skink and ornamental snake," the statement said.
"Adani will await the Minister and his department's timely reconsideration of its approval application under the Commonwealth Environment Protection and Biodiversity Conservation (EPBC) Act."
The government is due to look at the approval again in six to eight weeks.
But now the mine has faced another setback, with the Commonwealth Bank pulling out of the project.
The bank was advising Adani on how to get finance for the coal project, but announced on Wednesday night that it had terminated the relationship.
"We confirm that our advisory role has concluded. Due to client confidentiality we are unable to comment further," a spokesperson said.
It follows other international banks who have abandoned Adani's controversial coal project, and environmental campaigners are thrilled.
The Australian Youth Climate Coalition (AYCC) has been leading a campaign to get CommBank customers to pledge to move their money if the funding went ahead. Whilst the bank has been tight-lipped about the reasons behind the withdrawal, the AYCC says environmental concerns were a big factor.
"Three years ago we were facing six new coal ports," Kirsty Albion from the Australian Youth Climate Coalition told BuzzFeed News. "Now what we've seen is company after company walking away from this project, like Lendlease, Glencore, Xstrata and 11 international banks. Not just on the Carmichael mine but the whole Galilee Basin project," she said.
Environment minister Greg Hunt says green groups are just having a big whinge about the mine's effect on the Great Barrier Reef. After all, the Galilee Basin mine project is 500 kilometres inland.
"It is casual, uninformed and it is false and untrue," Hunt told ABC Radio when he approved the mine last year.
But there are big flow-on effects of building and operating such a big coal mine in Queensland.
It's not just about digging up the coal, they also have to process it, move it and eventually use it. Every step of the process has an environmental impact.
So even though the planned mine is inland, a coal port will have to be built at Abbot Point on the coast, and the coal will be exported on giant ships passing close to the Great Barrier Reef. But that's not all.
To make that route for the ships carrying coal, the sea bed near Abbott Point will have to be dug up, which is bad news for dugongs and turtles who eat the sea grass.
Then they have to put all 1.6 million tonnes of that sea floor they just dug up (known as dredge spoil) somewhere, so the plan is to dump it on wetlands at Caley Valley - which is bad news for the threatened species of birds that live there.
Then there's the story of the longer-term effects when it comes to burning all that coal, a narrative we know all too well.
Releasing carbon into the atmosphere warms the planet and leads to rising sea temperatures, which is not just bad news for all the sea creatures who live in the reef, but devastating for entire marine ecosystems.
It's not just environmental campaigns that have seen the huge coal development grind to a halt. The global price of coal is plummeting. Last week, a coal mine in Queensland's Isaac Plains sold for $1. Three years ago, it was valued at $860 million.
One Australian coal analyst put it simply: "I'm not sure how it could get any worse at the moment," said Robin Griffin from Wood Mackenzie.
With falling demand for coal from China, Australia has been looking to India, with its ballooning population, as a major buyer.
But even Adani is looking to clean energy technology, recently announcing that it will invest in building two giant solar plants in India, as part of the Modi government's new commitment to renewable energy.
As the world's biggest polluters start to turn to the sun for energy, Australia is still digging in the ground, even as the financial backing of its latest project crumbles.
If the coal mine in Galilee Basin doesn't end up going ahead, environmental activists could soon be telling the story of how a lizard, a snake, and some bungled paperwork finally made Australia see the light.
Alexandra Lee is a politics reporter for BuzzFeed News and is based in Sydney, Australia.
Contact Alex Lee at email@example.com.
Got a confidential tip? Submit it here.