The force of attraction or repulsion between materials made from such components as copper, nickel, cobalt, and steel is known as magnetism.
Simply put, the acceleration of electrical charges is what gives magnetic its strength. Magnets are found in the majority of modern devices. Actually, a magnet is used in everything with a motor.
One of the four fundamental forces of the universe, gravitational force, is produced by the electromagnetic force, which is brought about by the acceleration of charges.
When two objects have charges moving in the same direction, there is a magnetic pull force between them.