Residents began returning to fire-ravaged communities west of Madrid after officials lifted some evacuation orders, while authorities in southwestern France warned a looming heatwave could reignite major blazes and force thousands more from their homes.