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.
Chalk is formed from lime mud, which accumulates on the sea floor which is then transformed into rock by geological processes.