If the target land is an illegal target by the time Cleansing Wildfire tries to resolve, the spell doesn’t resolve. No player searches for a basic land card and you don’t draw a card. If the target is legal but not destroyed (most likely because it has indestructible), its controller does search for a basic land card and you do draw a card.

Artwork
Loading artwork…
Cleansing Wildfire
Zendikar Rising · #137 · EN
Nonfoil—Foil—
Card rules
Destroy target land. Its controller may search their library for a basic land card, put it onto the battlefield tapped, then shuffle.
Draw a card.
Every rebirth looks like a death.
Common · Illustrated by Mathias Kollros
Format legality
Brawl Legal
Commander Legal
Competitive Brawl Legal
Duel Legal
Gladiator Legal
Historic Legal
Legacy Legal
Modern Legal
Oathbreaker Legal
Pauper Legal
Pauper Commander Legal
Pioneer Legal
Timeless Legal
Tlr Legal
Vintage Legal
Alchemy Not Legal
Future Not Legal
Old School Not Legal
Penny Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions