Magnets are made of iron, nickel, cobalt, or steel. To preserve a bar magnet long term, you should store it with another magnet to maintain its magnetic field. When a magnet breaks, its magnetic field also breaks into smaller fields in each broken piece. An electromagnet generates a magnetic field through a coil of wire when electric current passes through; placing an iron core inside the coil strengthens the magnetic field. Materials can be magnetic, like iron, cobalt, and nickel, or non-magnetic, like aluminum, copper, glass, plastic, and wood.