This article is about Ampère's force law. For the law relating the integrated magnetic field around a closed loop to the electric current through the loop, see Ampère's circuital law.
Two current-carrying wires attract each other magnetically: The bottom wire has current I1, which creates magnetic field B1. The top wire carries a current I2 through the magnetic field B1, so (by the Lorentz force) the wire experiences a force F12. (Not shown is the simultaneous process where the top wire makes a magnetic field which results in a force on the bottom wire.)
In magnetostatics, Ampère's force law describes the force of attraction or repulsion between two current-carrying wires. The physical origin of this force is that each wire generates a magnetic field, following the Biot–Savart law, and the other wire experiences a magnetic force as a consequence, following the Lorentz force law.