We know that magnets have a north and a south, inside magnetic materials are areas called domains. These act like little magnets and also have a north and a south.
Magnetic materials can be turned into temporary magnets because of these domains
This video will tell you about how you can make a temporary magnet.