Despite the rich history of the baffling behaviour, the science of why insects gather around lights at night has never been nailed down. Popular theories propose that moths navigate by the moon and mistake lamps for moonlight or that the insects fly toward light to escape imminent danger.