A magnet's magnetism decreases when it is heated and increases when it is cooled. It has to be heated at around 1000 degrees Celsius. Like poles (S-pole and S-pole/N-pole and N-pole) will repel each other while unlike poles (N-pole and S-pole) will attract each other. Magnets are only attracted to special metals. Iron, cobalt and nickel are magnetic.