Magnetic material becomes magnetised when under the influence of a magnetic field (induced by the magnet) and all the tiny magnets shift to match with the corresponding pole e.g. south pole of tiny magnets in the magnetic material shifts to match with the permanent magnet’s north pole