A magnetic field is the area around a magnet where its force has an effect.The magnetic field is invisible, but it can push or pull magnetic materials like iron or steel. It is strongest near the poles of the magnet and can be shown using iron filings or a compass.