In many species it is a piercing organ which allows the insect to put its eggs into a specific place. In some species of wasp, the female drills through tree bark with her ovipositor and lays eggs in the bodies of grubs eating under the bark. 