At least 25 people have been killed in two massive blazes that destroyed thousands of homes.