The triggered ability will resolve and the Insect will be created before the spell that caused it to trigger resolves.

Artwork
Loading artwork…
Dragonlair Spider
The List · #PCA-87 · EN
Nonfoil—Foil—
Card rules
Reach
Whenever an opponent casts a spell, create a 1/1 green Insect creature token.
5/6
Swarms thrive in its nest, feeding on leathery bits of discarded wing.
Rare · Illustrated by Carl Critchlow
Format legality
Commander Legal
Duel Legal
Legacy Legal
Oathbreaker Legal
Vintage Legal
Alchemy Not Legal
Brawl Not Legal
Competitive Brawl Not Legal
Future Not Legal
Gladiator Not Legal
Historic Not Legal
Modern Not Legal
Old School Not Legal
Pauper Not Legal
Pauper Commander Not Legal
Penny Not Legal
Pioneer Not Legal
PreDH Not Legal
Premodern Not Legal
Standard Not Legal
Standard Brawl Not Legal
Timeless Not Legal
Tlr Not Legal
Rulings
Published rulings from the downloaded Scryfall catalog. Source card record · Rules and interactions
The triggered ability won’t be affected if the spell that caused it to trigger is countered.