petrogenesis

the mode of formation of rocks, especially of igneous rocks.