The material to be magnetized such as an iron nail is attached to a bar magnet for some period of time. After some time, some pins are brought close to the iron nails.
It is seen that the pins become attracted to the iron nails.
The iron nails is now behaving like a magnet as a result of its attachment to the bar magnet.
Magnet can also be made by induction.