The correct option is D attract
A magnet attracts or repels other magnets depending on their mutual orientation of north and south poles. When like poles of two magnets are kept close to each other, they repel each other. Also, when unlike poles of two magnets are kept close to each other, they attract each other. So, like poles repel and unlike poles attract.