Diamagnetic materials create an induced magnetic field in a direction opposite to an externally applied magnetic field, and are repelled by the applied magnetic field. Hence, if a diamagnetic substance is brought near the north or the south pole of a bar magnet, it is repelled by the both the poles.