Very little is known about alterations in microclimate when an herbivore feeds on host plant. Modifications of leaf transmittance properties induced by feeding activity of the leaf miner Phyllonorycter blancardella F. were measured using a spectrometer. Their effects on the herbivore's body temperature and respiration rate have been determined under controlled conditions and varying radiation level employing an infrared gas analyser. By feeding within leaf tissues, a miner induces the formation of feeding windows which transmit a large portion of incoming radiations within a mine. As a result, body temperature and respiration rate increase with radiation level when positioned below feeding windows. Therefore, the miner is not always protected from radiations despite living within plant tissues. The amount of CO(2) released by larvae below feeding windows at high radiation levels is about five-fold that recorded in the dark. By contrast, body temperature and respiration rate increase only slightly with radiation level when the insect is positioned below intact tissues through which radiation is only weakly transmitted. A mine offers its inhabitant a heterogeneous light environment that allows the insect larva to thermoregulate through behavioural modification. Our results highlight the importance of physical feedbacks induced by herbivory which alter significantly an insect's metabolism independently of its nutritional state.