Microfossils are most common in sediment that forms beneath water, particularly ocean water or lake water. Very old microfossils may be found in rock. Special techniques are used to separate microfossils from rock. For example, the shells of diatoms and some other organisms are made of silica; other materials in the rock can sometimes be removed with acid, leaving just the silica shells.