The dinoflagellates (Greek δῖνος dinos "whirling" and Latin flagellum "whip, scourge") are a monophyletic group of single-celled eukaryotes constituting the phylum Dinoflagellata and are usually considered protist. Dinoflagellates are mostly marine plankton, but they also are common in freshwater habitats. Their populations vary with sea surface temperature, salinity, and depth. Many dinoflagellates are photosynthetic, but a large fraction of these are in fact mixotrophic, combining photosynthesis with ingestion of prey (phagotrophy and myzocytosis).
In terms of number of species, dinoflagellates are one of the largest groups of marine eukaryotes, although substantially smaller than diatoms. Some species are endosymbionts of marine animals and play an important part in the biology of coral reefs. Other dinoflagellates are unpigmented predators on other protozoa, and a few forms are parasitic (for example, Oodinium and Pfiesteria). Some dinoflagellates produce resting stages, called dinoflagellate cysts or dinocysts, as part of their lifecycles, and are known from 84 of the 350 described freshwater species, and form a little more than 10% of the known marine species. Dinoflagellates are alveolates possessing two flagella, the ancestral condition of bikonts.
About 1,555 species of free-living marine dinoflagellates are currently described. Another estimate suggests about 2,000 living species, of which more than 1,700 are marine (free-living, as well as benthic) and about 220 are from fresh water. The latest estimates suggest a total of 2,294 living dinoflagellate species, which includes marine, freshwater, and parasitic dinoflagellates.
A rapid accumulation of certain dinoflagellates can result in a visible coloration of the water, colloquially known as red tide (a harmful algal bloom), which can cause shellfish poisoning if humans eat contaminated shellfish. Some dinoflagellates also exhibit bioluminescence—primarily emitting blue-green light. Thus, some parts of the ocean light up at night giving blue-green light.