When an electric current passes through a conductor, it creates a magnetic field around it.
The strength of the field increases with current and is influenced by the shape of the conductor.
Field strength around a straight wire is proportional to the current: B ∝ I