Most silicates are formed as molten rock cools and crystallizes. For example, molten rock containing magnesium and iron can form minerals of the olivine group, while quartz is formed from molten rock composed of only silicon and oxygen, the silicon-oxygen tetrahedra.