Some metals have a structure that allows their electrons to form a magnetic field which allows them to magnetize. Iron, Cobalt, and nickel are a few of these metlas. Ideally, the more electgrons in a metal that can be lined up, the stronger the production of a magnetic field.