Germany have agreed to permanently ban fracking in the country following years of debate over the issue.

The coalition government have said that they will outlaw the practise of fracking for shale gas, but will allow test drilling to take place in certain circumstances.

Reuters reports:

German industry is keen to keep the door open to fracking – which involves blasting chemicals and water into rocks to release trapped gas – arguing it could help lower energy costs, but opposition is strong in the country, where a powerful green lobby has warned about possible risks to drinking water.

If the law is approved by parliament, Germany will follow France, which has banned fracking, whereas Britain allows it subject to strict environmental and safety guidelines.

Germany was on the verge of a parliamentary vote on similar legislation to ban fracking a year ago, but the effort stalled amid disagreements between Chancellor Angela Merkel’s conservative Christian Democrats (CDU) and the left Social Democrats (SPD).

The two parties agreed on Tuesday to an indefinite ban, but the compromise legislation calls for the German parliament to reassess whether the decision is still valid in 2021, said Thomas Oppermann, who heads the SPD’s parliamentary group.

CDU officials confirmed that a compromise had been reached.

Friends of the Earth Germany (BUND) criticized the proposal and said that by setting a date for a fresh look, the coalition had essentially agreed to allow fracking in five years.

“The coalition’s agreement on a fracking permission law is hair-raising. The law must be stopped and replaced with a true fracking ban,” Hubert Weiger, who heads the environmental group, said in a statement.

Both parties were due to debate the legislative proposal in caucus meetings on Tuesday.

Further details of the compromise legislation were not immediately available.

Current German law permits unconventional fracking, but virtually no drilling permits have been approved.