Spain's government declared a national emergency Friday after wildfires forced the evacuation of some 20,000 people from villages near Madrid, while in southern France more than 60,000 residents fled their homes, including by boat, to escape two major blazes.