Thousands of squid beached themselves in California in the last week, essentially committing mass suicide. And it’s not an isolated incident. Scientists have been wondering for a long time what makes squid go through these occasional suicide events, and they think they might finally have an answer.

The culprit is poisonous algae, which has been intoxicating the squid and causing them to become disoriented so that they come up on shore and die, instead of say, swimming and living, like you’d think they’d prefer. Well, “prefer” is perhaps a strong word given squid cognition, but at any rate most animals like to live.

Reader support helps sustain our work. Donate today to keep our climate news free. All donations DOUBLED!

Each time the squid have all collectively bought the farm, there’s been a red tide, an algal bloom where the water gets so full of microorganisms that it turns red. So scientists though maybe there was a connection, and it looks like they’re probably right. It is possible that low levels of a chemical called domoic acid — the thing that makes human beings sick from eating shellfish when there’s a red tide — gets into the squid’s brains and essentially makes them drunk.

Grist thanks its sponsors. Become one.

Domoic acid makes humans develop a sort of amnesia, so this makes sense — since squid don’t really have enough going on in their lives to develop amnesia, they only thing they lose is the ability to distinguish between the depth of water that’s conducive to swimming, and the depth that’s conducive to dying.

Red tides occur naturally, so if this is all correct, humans are for once off the hook for bizarre mass animal deaths. Scientists don’t have any understanding of why something in the natural environment might arbitrarily cause squid to die off, but maybe we should ask the algae. They probably have some justification about “thinning the population for the squids’ own good.”