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.
When alkali feldspar is extracted from granite, it changes to granitoid and later, it becomes trondhjemite with quartz as major mineral.