How to Make Magnet?

Wrap a 4 inch nail with thin wire about 30 times very tightly to form a coil. Attach one end of the wire to the positive side of a D cell battery and then do the same to the negative side of the D battery.