A magnetic field is a region of space where a magnetic force can be observed, typically created by moving electric charges (electric current) or magnetic materials.