Light profoundly shapes ecosystems, influencing the behaviour and niche specialisation of many species. This is especially true for visual predators, particularly crepuscular and nocturnal animals, whose foraging depends on adequate illumination. Despite this, research on how animals perceive light sources and position themselves relative to these sources is scarce. Using a modified dead-reckoning protocol based on GPS, accelerometer, and magnetic compass data, we investigated the body orientation of foraging European Nightjars (Caprimulgus europaeus, hereafter nightjar) to determine their line of sight relative to bright sections of the nocturnal sky, created by natural or artificial light. We found that nightjars are more likely to align themselves with brighter sections of the sky, although not necessarily with the brightest patch. On full moon nights, they positioned the moon within their line of sight when it was low on the horizon, but this likelihood decreased as the moon rose higher. During other moon phases, the likelihood of having the moon within line of sight increased linearly with moon altitude. During moonless parts of the night, nightjars appeared to use skyglow as a background for prey detection, but only when it was sufficiently bright. When both moonlight and skyglow were present, nightjars showed a preference for moonlight. This study shows that European Nightjars use illuminated sections of the sky, including skyglow, as bright backgrounds to detect flying prey. This suggests that, in the absence of the moon, nightjars can actively take advantage of this form of light pollution while foraging. However, the success of their hunting under skyglow-induced lighting remains unclear. We hypothesise that the effectiveness of these backgrounds depends on their brightness and colour composition. Further research is needed to better understand the complex dynamics of contrast detection under varying lighting conditions.