He asked the gnat to buzz in the ears of the elephant, so that the elephant would be thrilled to listen to the music of the gnat and close its eyes. Then she asked the woodpecker to pluck his eyes. She herself would be on the edge of a pit and would croak misleading the elephant to think that it is a pond. The next day at noon the three carried out the plan and the elephant was killed when he fell flat into a pit after being blinded by the woodpecker when he closed his eyes in response to the gnat. So the revenge was taken with collective wit of all three animals.
Wit is superior to brute force.