Your afternoon chocolate bar may be fuelling climate change, destroying protected forests and threatening elephants, chimpanzees and hippos in West Africa, research suggests.

Well-known brands such as Mars and Nestle are buying through global traders cocoa that is grown illegally in dwindling national parks and reserves in Ivory Coast and Ghana, environmental group Mighty Earth said.

“Every consumer of chocolate is a part of either the problem or the solution,” Etelle Higonnet, campaign director at Mighty Earth, told the Thomson Reuters Foundation. “You can choose to buy ethical chocolate. Or you’re voting with your dollar for deforestation.”

Mars and Nestle told the Thomson Reuters Foundation they are working to tackle deforestation.

“We take a responsible approach to sourcing cocoa and have committed to source 100% certified sustainable cocoa by 2020,” Mars said in an email.

Both companies have committed to join the Cocoa and Forests Initiative, a major effort to end deforestation in the global cocoa supply chain, launched in March. “We will be working to ensure human rights are given a high priority alongside the environmental aims of this initiative,” Nestle said in emailed comments.

Almost one-third of 23 protected natural areas in Ivory Coast that researchers visited in 2015 had been almost entirely converted to illegal cocoa plantations, the report said.

Researchers said the practice is so widespread that villages of tens of thousands of people, along with churches and schools, have sprung up in national parks to support the cocoa economy.

In plain sight

Ivory Coast, Francophone West Africa’s biggest economy, is the world’s top cocoa grower.

While the bulk of its 1 million cocoa farmers ply their trade legally, Washington-headquartered Mighty Earth estimates about a third of cocoa is grown illegally in protected areas. Deforestation for cocoa happens in sight of authorities and chocolate traders are aware of it, they said.

Loss of natural forests is problematic because they act as a home for the region’s wildlife, and a key weapon against climate change, absorbing carbon dioxide – a major driver of climate change – as they grow.

Available land for new cocoa plantations in Ivory Coast ran out long ago, so farmers have moved into parks and reserves, taking advantage of a decade of political crisis that ended in 2011. Ivory Coast’s now has about 2.5 million hectares (6 million acres) of natural forest, a fifth of what it had at independence in 1960, according to European Union figures. Most of the losses have been due to expanding agriculture.

The government has struggled to evict farmers from forest reserves amid accusations in 2013 of human rights abuses by security forces. Details of the Cocoa and Forests Initiative, which is initially focusing on Ivory Coast and Ghana, will be announced by November’s global climate talks in Bonn.

This article first appeared on Thomson Reuters Foundation News.