WARSAW, Poland (AP) — European Union’s top court on Friday ordered Poland to immediately stop mining brown coal at the Turow mine, which is on the border with the Czech Republic and Germany.

The Czech Republic filed in March for an injunction, saying the open-cast lignite mine in Poland drains groundwater away from its inhabited areas and has other negative effects on its residents.

The decision by the EU’s Court of Justice is a temporary measure pending the court’s final judgement on Prague's complaint.

In January, the German city of Zittau, just across the border from Turow, also took Poland to the EU's court, saying the mine was harming the city and was draining away groundwaters.

Poland’s state PGE energy group, which runs the lignite mine in the southwest, argues that the mine needs to continue operations for years to allow Poland to phase out black coal in line with the European Union's climate policies.

It said on Twitter the court's decision is a path toward a “wild,” uncontrolled transition to green energy that threatens an unplanned loss of jobs and livelihoods.

Black coal accounts for over 48% of Poland's energy production compared to under 17% from lignite. Turow also has a lignite power plant.

Poland Climate Minister Michal Kurtyka recently extended the mine's license until 2044. Poland's new energy plan says the last black coal mine will be closed no later than 2049, but critics and environmentalists say the country's inefficient coal mining must close sooner.

The court said the previous 2026 license for Turow had infringed EU laws because it was granted without prior environmental evaluation. The order by the court's Vice President Rosario Silva de Lapuerta said “due to its negative effects” the Turow mine “must immediately cease lignite extraction activities.”

The Czech government filed the suit after not finding a solution in talks with Poland on the subject, but says the dialogue will continue.

Almost 25% of Poland's energy comes from renewable energy sources like wind, solar, hydropower and biofuels.

___

Follow all AP stories on climate change issues at https://apnews.com/hub/climate.