the branch of geology dealing with the origin, occurrence, structure, and history of rocks, especially igneous and metamorphic rocks.