What is a Geologist? Understanding Earth's Structure & History
That scientist would be a geologist.
Geologists study the Earth's physical structure, composition, history, and processes. This includes rocks, minerals, fossils, landforms, and the Earth's interior.