Chert forms when microcrystals of silicon dioxide grow within soft sediments that become limestone or chalk. The chert formation can be either of chemical or biological origin.
Diatomite rock formed from the skeletal remains of single celled plants called diatoms. When diatoms die, their skeletal remains sink to the bottom of lakes and oceans etc. hence forming diatomite deposit.