Spanish voters helped the terrorists change their entire government. Up until the election, one party was polling strong. The bombs happen right before the election, and the other party (the one that wanted to pursue appeasement) was voted into office.
Well done, Spain. You proved terrorism is an effective tool for foreign policy.