Petrogenesis, also known as petrogeny, is a branch of petrology dealing with the origin of igneous rocks. Petrology is the discipline of geology that studies rocks.