en European peacock
It is resident in much of its range, often wintering in buildings or trees, and can be found in woods, fields, meadows, pastures, parks, and gardens, and from lowlands up to 2,500 metres elevation.
The recorded food plants of the European peacock are stinging nettle (Urtica dioica), hop (Humulus lupulus), and the small nettle (Urtica urens). The adult butterflies drink nectar from a wide variety of flowering plants, including buddleia, willows, dandelions, wild marjoram, danewort, hemp agrimony, and clover.
Research has shown that avian predators hesitate for a much longer time if they encounter butterflies that display their eyespots than if they encounter butterflies whose eyespots are covered. In addition, predators delay their return to the butterfly if it displays eyespots and some even flee before attacking. (source: Wikipedia)