The Spanish government declared a national emergency late Thursday after a series of wildfires threatened communities near Madrid and in the neighboring province of Ávila, forcing more than 10,000 people to evacuate as firefighters battled to contain the fast-moving blazes.

The Interior Ministry said the declaration was prompted by multiple fires erupting simultaneously, worsening weather conditions and the need to coordinate extensive resources from different levels of government, making firefighting and emergency response efforts significantly more complex.

Spain, like much of southern Europe, has experienced increasingly destructive wildfire seasons that scientists attribute to climate change.

Experts say unusually heavy spring rainfall fueled dense vegetation growth that later dried out during extreme summer heat, leaving vast amounts of highly flammable fuel that accelerated the spread of the fires.

The Madrid regional government requested assistance, describing the situation as one of "extreme gravity." It said active fires in Villa del Prado, San Martin de Valdeiglesias and Almorox, in neighboring Castilla-La Mancha, had the potential to spread beyond current firefighting capacity.