Diatoms are one-celled plants that secrete shells out of silica that they extract from the water around them. The shells, called frustules, are intricate and beautiful glassy cages made of opal. Most diatom species live in shallow water, either fresh or salt.
Diatomite is very useful because silica is strong and chemically inert. It's widely used to filter water and other industrial liquids including foods. It makes excellent fireproof lining and insulation for things like smelters and refiners. It's a very common filler material in paints, foods, plastics, cosmetics, papers and much more. Diatomite is part of many concrete blends and other building materials. In powdered form it's called diatomaceous earth or DE, which you can buy as a safe insecticidethe microscopic shells injure insects but are harmless to pets and people.
It takes special conditions to yield a sediment that is nearly pure diatom shells, usually cold water or alkaline conditions that do not favor carbonate-shelled microorganisms (like forams), plus abundant available silica, often from volcanic activity. That means polar seas and high inland lakes in places like Nevada, South America and Australiaor where similar conditions existed in the past, as in Europe, Africa and Asia. Diatoms are not known from rocks older than the Early Cretaceous, and most diatomite mines are in much younger rocks of Miocene and Pliocene age (25 to 2 million years ago).