What was glowing on the beach in cape cod?

The correct answer is: Dinoflagellates.

Dinoflagellates are a type of unicellular algae that can produce light through a process called bioluminescence. When the waves crash on the beach, the dinoflagellates are disturbed and they emit light. This can create a beautiful glowing effect on the beach.

Copyright Wanderlust World © https://www.ynyoo.com