Magnetism is the force of attraction or repulsion between magnets, the ability of electric charge to move is the creator of magnetism. Atoms are the small units of anything that exists around us. Each atom contains some charged particles known as electrons. These electrons present around the nucleus or core of an atom keep spinning top-like. Because of their motion, each electron behaves like a small magnet and generates an electric current too.