Permanent magnets have ferromagnetism. They occur naturally in some rocks, particularly lodestone, but are now commonly manufactured. A magnet's magnetism decreases when it is heated and increases when it is cooled. It has to be heated at around . 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.