Mars has gravity, as do all planets, but not a magnetic field.
Mass, gravity, magnetic field, the moon, distance from the sun.
Mars has a magnetic field.
Mars has a weak magnetic field compared to Earth. While Earth's magnetic field is created by a liquid iron outer core, Mars' magnetic field is generated by smaller pockets of magnetized rock in its crust. The overall magnetic field strength on Mars is about 1% of Earth's.
Out of all the theories out there the most compeling is that Mars magnetic field stopped working (there are also many theories on that too). Without a magnetic field, combined with the low gravity, the Solar wind slowly eroded the atmosphere and the water that was in it. This happened really early in Mars billions of years ago.
Mars does not have a global magnetic field like Earth, but it does have patches of magnetized rocks on its surface that suggest it may have had a magnetic field in the past. These magnetic patches are remnants of an ancient magnetic field that existed billions of years ago.
Mars has a very weak magnetic field compared to Earth. It is thought to be a remnant from when the planet had a more active core. This weak magnetic field is not strong enough to provide the level of protection from solar radiation that Earth's magnetic field offers.
Mars no longer has a magnetic field. Look at earth for a moment. The earth's magnetic field is generally thought to be the product of dynamo action associated with motion (currents) in the molten fluid core of the earth. Other planets that have magnetic fields are, in general, thought to have this same or a similar source for their fields. Mars no longer has a molten core. Our studies have revealed that there are parts of the crust of Mars that have been magnetized. We see that these areas have a residual magnetic field that has been left as an "impression" of the original magnetic field of the red planet. And that field has changed polarity at different times over the period when Mars still actually had a natural magnetic field and it magnetized portions of the crust. A link to the Wikipedia article on Mars is provided.
No, Earth's magnetic field and gravity are two separate phenomena. Earth's magnetic field is generated by its core while gravity is a fundamental force that exists between all objects with mass. Gravity is responsible for the attraction between objects, including the force that keeps us anchored to the Earth.
Gravity field Magnetic field Temperature field
Mars does not have a global magnetic field, but it does have localized regions of magnetic fields. The tilt of these magnetic fields varies across different regions on Mars, ranging from about 0 to 180 degrees.
Mars is much smaller, and therefore contains much less thermal energy. The lesser thermal energy caused Mars to cool faster than the Earth. Without heat in the core, Mars will not generate a magnetic field (the rapidly spinning core is a dynamo of magnetic energy).
The magnetic field on Mars is only residual, it collapsed many eons ago.