The study of rocks, including their occurrence, origin, history, structure, texture, and composition.