The larvae feed on Fabaceae such as brooms or sainfoin, on Cistaceae (Helianthemum nummularium) and Ericaceae. On acidic grasslands the caterpillars often live on Genista sagittalis, on calcareous at Helianthemum nummularium. In moors and on sand heaths or mats in the central Alps, the eggs are often laid on Vaccinium sp.
Callophrys rubi inhabits open land and dwarf shrub zones. Almost all nutrient-poor habitats can be settled, such as limestone grasslands, heaths, moors, very sparse forests, alpine pastures and the Mediterranean maquis. Callophrys rubi rises as the only European Hairstreak in the Alpine area up to over 2600m above sea level. Only Satyrium spini is able to settle on warm slopes up to nearly 1800m above sea level in the Southwestern Alps, but not in the northern Alps.
The pupa hibernates. The adults occur in almost always only a single generation from April to June, in the mountains even until July. The larva can be found from May to July/August.
Endangerment: regionally endangered or decreasing
In the lowlands, Callophrys rubi is in decline by the loss of economical worthless country (grasslands, sandy heaths, etc.) and thus occurs more and more on small-scale special locations. In the mountains and in Southern Europe, however, the butterfly is not endangered.
Callophrys rubi occurs from north Africa across Europe and large parts of northern and Central Asia to the Amur.