Current in a wire produces a magnetic field due to the movement of electric charges, which creates a magnetic effect around the wire. This phenomenon can be understood through relativity, where the contraction of space between fixed positive charges leads to a perpendicular force relative to the current's direction. Maxwell's equations elegantly relate electricity and magnetism, showing how electric fields and magnetic fields influence each other, particularly in dynamic situations. Historical figures like Faraday also contributed to understanding the connection between these two forces through experimentation and theoretical insights. The interplay of electric and magnetic fields is fundamental to electromagnetic theory, which is extensively documented in various educational resources.