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.
Phyllite is a metamorphic rock which is formed by regional metamorphism of argillaceous sediments since their cleavage arose due to deviatoric stress.