Land-use changes are considered one of the main drivers of biodiversity loss. Agricultural intensification, pastoral abandonment, and changes in forest management have led to the homogenisation of landscapes. In particular, the encroachment of grasslands and the densification of forests that are no longer pastured threaten species that require multiple habitats to nest and forage, such as the European Nightjar Caprimulgus europaeus. Whereas previous studies have focused on understanding factors influencing the decrease of nightjars at regional or national scales, here, we aimed to assess fine-scaled habitat selection by nightjars within nesting and foraging sites based on high-resolution GPS tracking data. Vegetation structure and composition were quantified in the field. In the nesting habitat, nightjars prefer open forests with a low percentage of trees and where the ground is not covered by more than 40% of grass and crawling bushes (dwarf bushes such as Juniperus species). In contrast, when foraging, nightjars select open grasslands and biodiversity-friendly managed vineyards, both richly structured, i.e. interspersed or surrounded by other land-use types such as hedges or isolated trees. Both the nesting and foraging habitats are currently threatened, either by the abandonment of forest management, which makes stands denser and more homogeneous, or through agricultural intensification, which reduces land-use diversity. Clear habitat-specific management recommendations and political incentives are needed to simultaneously preserve and/or restore these critical habitats, which are important for nightjars that use complementary resources for nesting and foraging.