The branch of geology that studies rocks: their origin and formation and mineral composition and classification.