The woodpecker plays an important role in the ecology of the forest, leaving cavities it hollows out for other small birds to nest in them, such as tits and flycatchers. In addition, it eats large quantities of forest pests - aphids, butterfly caterpillars and wood-eating insects - longhorned beetles, borers, bark beetles, ants and many others.