Panama's Supreme Court on Tuesday declared that a contract allowing a Canadian company to continue operating Central America's biggest copper mine was "unconstitutional."
The country has faced nationwide protests and roadblocks since Congress approved a law in October allowing First Quantum Minerals to operate a copper mine for 20 years, with an option to extend for another two decades.
Protesters were concerned over the potential environmental impacts of Central America's largest open-pit copper mine, as well as other terms of the deal.
"We have unanimously decided to declare the entire law 406 unconstitutional," said Supreme Court president Maria Eugenia Lopez, referring to the law governing the contract with the Canadian mining firm.
The decision came after four days of deliberations between the nine members of the court.
The announcement was followed by celebrations by a group of protesters who spent the night in front of the court.
"It is a victory for popular democracy," environmentalist Raisa Banfield, who was among those outside the court, told the Telemetro television channel.
Protesters also began to remove some of the roadblocks they had set up, local media reported.
Panama's President Laurentino Cortizo wrote on social media: "I receive and abide by the decision of the Supreme Court."
The protests were the largest in the country since the fall of dictator Manuel Antonio Noriega in 1989. Roadblocks, including of the Pan-American Highway, have led to more than $1.7 billion in losses, report business associations.
The Supreme Court had declared the original mining contract unconstitutional in 2017, but the government argued that the new version set out a minimum annual contribution from the mining company to the state of $375 million, 10 times the amount of the initial agreement.
In addition, the company and the government pointed out that the mine generates 8,000 immediate jobs and 40,000 indirect jobs, and would contribute four percent to Panama's gross domestic product.
Since February 2019, the open-pit mine has been producing about 300,000 tons of copper concentrate per year.
Critics say the mine has wrought destruction on forest areas in a key biological corridor linking Central America and Mexico.
First Quantum Minerals, which has invested more than $10 billion dollars in Panama, has notified the government of its intention to "present arbitration claims", under a free trade agreement between the two nations.
However, the company has said it prefers to resolve the situation through dialogue.
Panama's government said Sunday on social media it was prepared to "defend" its national interests in the face of an arbitration process.
However, experts believe the Supreme Court ruling could make it easier for the government to break the contract.
jjr/fj/sf/fb/caw