Magnetic field is a region around a magnet or a current-carrying wire where a magnetic force can be detected.