The magnetic field is a region around a magnetic material or a moving electric charge within which the force of magnetism acts. A magnetic field is a force field that is created by moving electric charges and magnetic dipoles and exerts a force on other nearby moving charges and magnetic dipoles.