Most planets in the solar system have a magnetic field. This is a picture of the one around Mars. Illustration by Windows to the Universe.