Reproduction in numerous marine organisms is timed to specific moon phases, but the mechanisms for sensing moon phases are incompletely understood. Here the authors report that an ancient, light-sensitive protein L-Cryptochrome in a marine bristle worm can discriminate between sun- and moonlight, enabling the animals to properly decode moon phases.