Iron particles are lined up when a magnet is brought close to iron. When two bar magnets are placed close together with the same poles facing, they will repel each other. The magnetic field consists of field lines that emerge from the North pole and reenter at the South pole. Magnets are made of iron, nickel, or cobalt. Magnetic materials such as iron and steel are attracted to magnets, while non-magnetic materials like plastic and wood are not. To preserve a bar magnet, it should be stored with another magnet to maintain its magnetic field.