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.