Two magnets or a magnet and a ferromagnetic work piece can cause force interaction.
Increasing the distance between the two magnets will cause a decrease in the force of attraction between two magnets.