When a current flows through the current-carrying conductor, a magnetic field forms around the current-carrying conductor.
The interactions between the magnetic fields of the current-carrying conductor and the magnet produce regions of unequal magnetic field densities around the conductor.
A force will be exerted on the conductor, moving it towards the region of lower magnetic field density.