Like other groups of marine organisms such as coral reefs, the calcareous algae assimilate HCO3 to precipitate CaCO3 in their tissues in order to build their resistant biological structures. During which period they are formed; during dark or diurnal photosynthesis.