The chemical reactions that occur between minerals or compounds when they are heated or exposed to different environments.