It is the study of the origin, composition, and structure of rocks, including both igneous and metamorphic rocks.