Mars is believed to have had a magnetic field like that of the Earth: generated by the motion of electrically conducting fluid in its core. This process is known as dynamo. It gives rise to a strong magnetic field, capable of encompassing the entire planet and protecting its atmosphere from being stripped away by the solar wind. However, this dynamo was only short-lived and shut down about 4 billion years ago. The details of this shut down, including its exact timing, is an active field of research. The Martian dynamo even after its extinction left Mars with a strongly magnetized crust. This process is at the core of my research: when rocks are exposed to an ambient magnetic field, here the magnetic field generated by the Martian dynamo, they get magnetized and generate a secondary magnetic field known as the lithospheric or crustal magnetic field. And interestingly they remain magnetized even when the ambient magnetic field switches off. Given this link between the dynamo (active or extinct) and the rock magnetization, the study of the crustal magnetic field as measured by spacecrafts and the study of the magnetization of rock samples as measured in laboratories allow us to take a look into the depths a planetary body, both in space and in time.