The study of the chemical composition of the earth in terms of the physicochemical and geological processes and principles that produce and modify minerals and rocks. Of practical importance in discovering and establishing the limits of ore deposits, petroleum, tar sands, salt, sulfur, and other valuable resources.