Females are only fertile during certain phases of the tidal cycle; the ability to perceive the phase of the moon may therefore help prevent wasted mating efforts. It may also give mantis shrimp information about the size of the tide, which is important for species living in shallow water near the shore.