Magnets create an invisible magnetic field that attracts magnetic objects like iron, nickel, and cobalt. Unlike poles attract while like poles repel. Cutting a magnet produces two new magnets. Earth's core, rich in iron and nickel, gives it a magnetic field. Strong magnets can pull objects even underwater.