Why are insects attracted to artificial lights?

Artificial lights can be deadly to the insects that fly around them, so why do these critters do it?

Moths and insects being attracted by the light of a lamppost, at night.
Being drawn to the light could be down to an older evolutionary response.
(Image credit: kunakos via Getty Images)

The classic summer cookout comes with chips, drinks and then, after the sun goes down, swarms of insects flitting around porch lights. But flying around artificial lights can have deadly consequences for critters such as moths, gnats and mosquitos; they can get trapped under lampshades and exposed to predators such as beetles, spiders, bats and birds. 

This "stupid circling" can even distract insects from goals such as eating, mating and reproducing, said Avalon Owens, a fellow at Harvard University. And artificial lights may be contributing to shrinking insect populations worldwide. So, given the risks, why are insects attracted to artificial lights? 

Meg Duff is a freelance science journalist and audio producer based in Brooklyn. She holds an M.F.A from New York University's Arthur L. Carter Journalism Institute. Her stories have also appeared in Slate Magazine, Scientific American, MIT Technology Review, and elsewhere.