The dramatic recovery of three species of grassland specialist butterfly threatened with extinction at their high latitude range limits in the 1980s has been attributed to two factors:increased grazing on calcareous grassland sites and warmer air temperatures. Both result in the warming of soil surface temperatures, favourable to the larvae of these species. We address the influence of both of these factors on the habitat usage of the butterfly Polyommatus bellargus, undergoing recovery at its northern range edge. We test the hypothesis that the larval niche of P. bellargus has become less constrained in the past three decades, whilst controlling for changes in habitat structure. Once habitat change has been accounted for we find no evidence for a broadening of the larval niche of P. bellargus.Further, we show that coincident with the recovery of P. bellargus there have been drastic reductions in average turf height across UK chalk grasslands, but changes in air temperature have been highly variable. We conclude that changes to soil surface temperatures caused by reducing turf heights will have been a more consistent influence than air temperature increases, and so habitat improvements through increased grazing will have been the major driver of recovery in P. bellargus. We consider the need to account for changes in habitat when exploring the impacts of recent climate change on local habitats in thermophilous species, and emphasise the continued importance of habitat management to support such species under variable local climates.