Accra - Ghana has long been known for its bountiful gold reserves and was called "the Gold Coast" during its colonial era.
But illegal mining in Africa's second largest producer is taking a heavy human as well as environmental and economic toll with more than $2bn lost to the practice last year alone.
Campaigners have been lobbying against illegal mining - known locally as "galamsey" - since February when local media revealed the dramatic impact that the practice, which often uses mercury, was having on Ghana's soil and water supply.
While illicit prospecting has long been an issue for Ghana, the new government elected in December has now made combatting it a priority.
It issued a temporary ban on all small-scale mining and is forming a plan due to be released in September to end the phenomenon permanently.
Security forces recently clashed with illegal miners in the Ashanti region, leaving one miner dead.
The incident in the town of Obuasi was a result of "Operation Vanguard", which has seen 400 members of the security forces deployed to take on the illegal miners.
Abraham Otabil, a spokesperson for the natural resources ministry, told AFP that while illegal mining was damaging rivers and farm land, it was also having a serious economic impact.
The ministry believes that more than $2.2bn was lost to illegal mining in uncollected taxes in 2016.
Around half of all small-scale mining operations are illegal, the government estimates, suggesting that the cost of the problem could be larger still.
Since 2006 gold has been Ghana's main source of foreign currency.
And while illegal mining has decreased since the government crackdown, rogue operators continue to defy the authorities.
As well as the environmental and economic costs, illegal mining has also caused much human suffering.
In the first week of July, 22 miners became trapped deep underground in an illegal mine.
Rescuers tried unsuccessfully to reach them for five days but were forced to concede defeat, declaring the men dead and sealing the pit.
One of the victims, 30-year-old Kojo Kandanoba, had been mining illegally for six years and used the meagre income to help provide for his family, his cousin Andrew Anchaba told AFP.
"He made some amount of profit from his work, that is what he used in catering for his parents and some other family members," Anchaba said.
An illegal miner himself, Anchaba said that many like him fear that the government crackdown will hurt them financially.
"We were aware of the ban on illegal mining but that was the only job available here and you know we cannot go and steal," he said.
"The government has promised us jobs but we are not seeing anything so we also continue to mine."
Maame Esi Eshun, a research analyst at the African Centre for Economic Transformation, said that artisanal mining is largely driven by poverty.
Her study on the practice in Ghana, Burkina Faso and Sierra Leone found that mining was more appealing than agricultural work for many rural poor because it was seen as offering quick returns.
It also helped miners raise funds to buy farm equipment, she found.
An estimated one million people are involved in illegal mining in Ghana and each typically earn between $100 and $300 per month, she said.
Those who opted to farm could be expected to earn just $70 a month.
Otabil, the ministry official, said the government would try to support miners to shift away from their illicit incomes.
"Within the next five years, we should be able to help many more people acquire work and jobs on their own, set up their own businesses and forget this illegal mining business," he said.
But illegal mining does not just attract Ghanaians: some 50 000 foreigners are thought to be involved, according to an Oxford Business Group report published in 2015.
At least 200 Chinese nationals have been arrested in connection with illegal mining so far this year, Otabil said.
A media backlash against China over its citizens' involvement in galamsey prompted a rare rebuke from Beijing's ambassador who in April called on Ghana's government to "guide the media to give an objective coverage on the illegal mining issue".
President Nana Addo Akufo-Addo recently defended the crackdown, saying that it was in the national interest.
"We are not against the Chinese or any other citizens but what we are all seeking is to protect the integrity of our environment to secure a better future for unborn generations," he told local media.