LA PAZ (Reuters) - Heavy rains over recent days in the Bolivian Amazon have helped put out forest fires that have raged for two months across the land-locked South American nation, charring more than 4 million hectares of land, local authorities said on Monday.

The storms helped Bolivia’s military contain blazes in the region of Chiquitania, home to large areas of dry forests and indigenous communities that have lived in them for centuries.

“Satellite images no longer detect burning or reactivated fires,” said Cinthia Asin, an official for environmental issues for the provincial government of Santa Cruz, a farming province in eastern Bolivia hard-hit by the fires.

Indigenous groups have marched through the province, while in the capital city on Friday hundreds of thousands of people protested against what they said had been a slow response to the fires by the national government.

The national weather service also told Reuters that in Chiquitania no fires were registered on Monday. But it warned that strong sun and high temperatures were expected to return to the region over coming says, raising the risk of fires ahead.

Armed forces commander Williams Kaliman said there was no immediate plan to withdraw about 5,000 troops that had been sent to battle the worst fires Bolivia has had over the last two decades. Critics say deforestation, caused by the government’s policy of increasing farming, is to blame for the disaster.

The government says it has spent more than $20 million in its effort to douse the flames. Complaints over the government’s handling of the crisis have dented the popularity of Bolivia’s leftist president, Evo Morales.

In neighboring Brazil, the number of fires in the Amazon rainforest receded in September amid improved weather conditions and containment efforts by the country’s military.