A current-carrying wire produces a magnetic field.