Attraction and repulsion are the main ideas of magnetism.Like poles that is north and north or south and south poles repel each other.unlike poles like north and south attracts each other.if a magnet suspended freely it comes to rest in north-south direction.