Finally, it is the job of gravity to bind individual objects to one another. Gravity is the attractive force that acts between objects with mass. The greater the mass of two objects, the greater the force of their mutual attraction. The further the bodies are moved away from one another, however, the weaker the force of gravity between them. This is because gravity follows something called an inverse square law.
Gravity is the weakest of the fundamental forces and yet, it has an unlimited range.
This is why gravity shapes the universe on its largest scales, because it acts over such vast distances. The electromagnetic force acts between all particles with electric charge, such as electrons , protons and ions. It consists of two interconnected forces, those of electricity and magnetism. For example, a moving particle with an electric charge creates a magnetic field while a magnetic field created around a conductive substance will induce charged particles to move. The force is very different from gravity in that, as well as being attractive, it also has a repulsive element as well.