Most earwigs are nocturnal and inhabit small crevices, living in small amounts of debris, in various forms such as bark and fallen logs. Species have been found to be blind and living in caves, or cavernicolous; Food typically consist of a wide array of living and dead plant and animal matter. For protection from predators, the species Doru taeniatum of earwigs can squirt foul-smelling yellow liquid in the form of jets from scent glands on the dorsal side of the third and fourth abdominal segment. It aims the discharges by revolving the abdomen, a maneuver that enables it simultaneously to use its pincers in defense.
Earwigs are regularly preyed upon by birds, and like many other insect species they are prey for insectivorous mammals, amphibians, lizards, centipedes, assassin bugs, and spiders
Relationship with human:
Earwigs are fairly abundant and are found in many areas around the world. There is no evidence that they transmit diseases to humans or other animals. Their pincers are commonly believed to be dangerous, but in reality, even the curved pincers of males cause little or no harm to humans.
There is a debate whether earwigs are harmful or beneficial to crops, as they eat both the foliage and the insects eating such foliage, such as aphids, though it would take a large population to do considerable damage. The common earwig eats a wide variety of plants, and also a wide variety of foliage, including the leaves and petals.