A field can be considered a type of energy in space, or energy with position. A field is usually visualized as a set of lines surrounding the body, however these lines do not exist, they are strictly a mathematical construct to describe motion. Fields are used in electricity, magnetism, gravity and almost all aspects of modern physics. An electric field is the region around an electric charge in which an electric force is exerted on another charge. Instead of considering the electric force as a direct interaction of two electric charges at a distance from each other, one charge is considered the source of an electric field that extends outward into the surrounding space, and the force exerted on a second charge in this space is considered as a direct interaction between the electric field and the second charge.
Basic magnetism is the existence of magnetic fields which deflect moving charges or other magnets.
However, magnetic objects are always found in pairs, there do not exist isolated poles in Nature. The most common source of a magnetic field is an electric current loop. The motion of electric charges in a pattern produces a magnetic field and its associated magnetic force. Similarly, spinning objects, like the Earth, produce magnetic fields, sufficient to deflect compass needles. Today we know that permanent magnets are due to dipole charges inside the magnet at the atomic level.