An organ at the hind end of the abdomen of female insects through which eggs are laid. It consists of a pair of modified appendages and is often long and piercing, so that eggs can be laid in otherwise inaccessible places. The sting of bees and wasps is a modified ovipositor.