Magnets are metals pieces that contain iron, nickel, cobalt or steel that have all of the molecules aligned in exactly similar direction. We use magnets in several things that we do such as when searching or trying to reach something specifically an object that adheres easily to magnets from a distant. Each of the molecules within the elements have south and north pole that when aligned with one another to produce a magnet will also align into the magnetic field of Earth, enabling the magnets to be utilized as compasses.
There are two specific types of magnets available today such as permanent and electromagnets. Their main difference of the two is that electromagnets need electricity to flow through the metal for it to be attractive.
Magnets can be produced by exposing the piece of metal into a magnetic field. This can be simply done by running magnet along the metal length. The molecules that are inside the metal rearrange themselves in order for them to line up in the north-south pattern. If this takes place, the metal is then polarized as well as magnetized as permanent magnet. And it will not lose its magnetic field over time.
There is also another way of making permanent magnets. Metals can also be polarized and turn into magnet by heating the cobalt, iron or nickel while beating it along the length using steel. This will result into lining the molecule in the same way that running along with magnet it would.
Electromagnets possess only a charge when the electric charge is passed through a metal wire. The process of electrifying the wire formed into the coils or even loops will create the magnetic field that is within the loops. This is evident in the image of the Faraday electromagnet. If you want to make the electromagnet a lot stronger, you should therefore need to increase the electric charge, or insert a piece of elements such as nickel, iron or cobalt into the loops of wire. However, you have to keep in mind that this will only work as long as the current is active.