The town of La Libertad saw heavy fighting during Nicaragua's civil war in the 1980s. But today, the blasts that you hear there come from miners exploring for gold.
In the past decade, the price of gold has jumped from $300 an ounce to more than $1,800. These record prices have provoked a boom in gold mining across Latin America, particularly in Nicaragua, the second poorest country in the hemisphere after Haiti.
B2Gold, a company based in Vancouver, Canada, operates Nicaragua's largest gold mine. Inside the company's massive mills in La Libertad, ore is crushed then washed with a carbon and cyanide leach solution to isolate the gold.
B2Gold bought this mine in 2009 and has spent $100 million to modernize the operation. The company's efforts have helped Nicaragua double gold production in the past three years. It's also created jobs in La Libertad.
"The mine is very important because it has meant jobs for everyone," said Cristobal Gonzalez, one of the workers at the B2Gold operation. "It's also helped develop the community."
People have been mining gold in Nicaragua for centuries, but the industry fell on hard times following the 1979 revolution. The Sandinista government nationalized mines and expelled foreign companies.
A U.S. embargo in the 1980s made it nearly impossible to buy spare parts for American-made mining equipment. In addition, the gold mines were targeted by Contra guerrillas.
Oscar Vega, the manager of the B2Gold mine at La Libertad, said, "There was a lack of investment and a lot of damage caused by the war. The mines were targets because they were located in remote areas. La Libertad was a war zone."
But now, the country's mining industry has come back to life amid soaring gold prices. It costs about $500 to produce an ounce of gold that today sells for about $1,600. Ironically, foreign mining firms are being welcomed back to Nicaragua by their old foes, the Sandinistas, led by President Daniel Ortega. The Sandinistas have ditched their Marxist rhetoric and government officials have reached out to mining executives.
"We work together, you know? If there's a problem we sit down and we solve it and that's a huge difference," said Randy Martin, chairman of Hemco, which runs Nicaragua's second-largest gold mine.
"This is by far — and you can talk to any mining company in Central America — this is by far the best place to operate," Martin said.
Gold is now the country's No. 3 export, behind coffee and meat, according to Jose Aguerri, president of Nicaragua's private business council. He said gold has helped the economy grow by 4 percent annually in the past year, the highest rate in Central America.
"Gold mining means a lot of investment and a lot of employment for the communities where they are. Also, they have a good relation with the communities. And that has been very important for a sector that is not very friendly, traditionally speaking, with the communities," Aguerri said.
Indeed, gold mining has been hugely controversial elsewhere in Latin America. It's caused environmental damage, and it's disrupted local villages. But in Nicaragua, environmental issues are often overshadowed by concerns about poverty and unemployment.
Another factor, according to Martin, is that firms have so far focused on Nicaragua's traditional mining zones rather than building open-pit and tunnel mines in untouched areas.
"Because remember, the operations that are here right now are the operations that have been here for 60 or 70 years. They are technically the same operations. There hasn't yet been that great big new discovery yet in Nicaragua," Martin said.
Mining companies are also winning hearts and minds by sponsoring health, education and recreational programs. Tom Lee, who's head of corporate social responsibility in Nicaragua for B2Gold, shows me a company project to install lights and a new roof at the town basketball court.
"The idea is to give recreational opportunities to some of the youth, the kids here in La Libertad so that they have something to do in the evenings," Lee said.
B2Gold has also hired contractors to pave streets and build houses for miners. Lee said the company intends to invest heavily in both mining projects and community development while the price of gold is still high. That way, he said, Nicaragua will have something to fall back on when gold rush ends.
"We know that the price of gold is cyclical," Lee said. "At some point it is going to drop again and we have to be prepared for that."
Workers of B2Gold at mining site in La Libertad, Nicaragua. (Photo: John Otis)