It deals with the history of rocks (7)
I believe the answer is:
geology
(Other definitions for geology that I've seen before include "Study of Earth, its rocks" , "The scientific study of the earth's crust" , "Earth science" , "Science that deals with the history of rocks" , "The science of the earth's crust" .)