You can activate it when your opponent declares an attack. When you do, Shuffle 2 of your Traps from you Deck/hand/Graveyard with the monster that attacked you. Your opponent has to guess. If he hits one of your Traps, his monster is removed from play and your Traps are Set on the field. If he hits his own monster, he gets to attack the target he selected before this card is activated.