The two magnets will be attracted to each other when the north pole of Magnet 2 is placed near the south pole of Magnet 1.
Magnets attract when opposite poles come together (north and south), while like poles (north-north or south-south) will repel each other.