Magnets are materials or devices that attract items containing the elements cobalt, nickel, and iron. About 2000 years ago, some people found rocks called magnetite that attracted iron. Each particle that makes up a magnet has its own magnetic field. When all these particles line up in the same direction, their magnetic fields act together. Magnets can also be created using a(n) electric current. When current runs through a wire, a(n) magnetic field forms. A temporary magnet called a(n) electromagnet can also be created by current flowing through wire wrapped around an iron bar.