Rock geochemistry is the study of the chemical composition of rocks to understand the processes and conditions that formed them. It provides insights into the Earth's history, including tectonic activity, magmatic processes, and environmental changes over geological time scales.