Habitat fragmentation is considered to be one of the main causes of population decline and species extinction worldwide. Furthermore, habitat fragmentation can decrease the ability of populations to resist and to recover from environmental disturbances such as extreme weather events, which are expected to occur at an increasing rate as a result of climate change. In this study, we investigated how calcareous grassland fragmentation affected the impact of the climatically extreme summer of 2003 on egg deposition rates, population size variation and survival of the blue butterfly Cupido minimus, a specialist herbivore of Anthyllis vulneraria. Immediately after the 2003 summer heat wave, populations of the host plant declined in size; this was paralleled with decreases in population size of the herbivore and altered egg deposition rates. In 2006 at the end of the monitoring period, however, most A. vulneraria populations had recovered and only one population went extinct. In contrast, several butterfly populations had gone extinct between 2003 and 2006. Extinction probability was significantly related to initial population size, with small populations having a higher risk of extinction than large populations. These results support the prediction that species of higher trophic levels are more susceptible to extinction due to habitat fragmentation and severe disturbances.