The natural light cycle has profound effects on animals' cognitive systems. Its alteration owing to human activities, such as artificial light at night (ALAN), affects the biodiversity of mammalian and avian species by impairing their cognitive functions. The impact of ALAN on cognition, however, has not been investigated in aquatic species, in spite of the common occurrence of this pollution along water bodies. We exposed eggs of a teleost fish (the zebrafish
Danio rerio
) to ALAN and, upon hatching, we measured larvae’ cognitive abilities with a habituation learning paradigm. Both control and ALAN-exposed larvae showed habituation learning, but the latter learned significantly slower, suggesting that under ALAN conditions, fish require many more events to acquire ecologically relevant information. We also found that individuals' learning performance significantly covaried with two behavioural traits in the control zebrafish, but ALAN disrupted one of these relationships. Additionally, ALAN resulted in an average increase in larval activity. Our results showed that both fish's cognitive abilities and related individual differences are negatively impacted by light pollution, even after a short exposure in the embryonic stage.