The electromagnetic force is mediated by photons, which are massless particles that travel at the speed of light. When a charged particle accelerates, it emits photons. These photons can then travel through space and interact with other charged particles, causing them to accelerate. This is how electric charges exert forces on each other.
The strength of the electromagnetic force between two charged particles depends on the magnitude of the charges and the distance between them. The greater the charges, the stronger the force. The greater the distance between the charges, the weaker the force.
The electromagnetic force is also affected by the presence of other charged particles. For example, if there are two positive charges and one negative charge in a system, the positive charges will repel each other and the negative charge will be attracted to both positive charges. This will cause the negative charge to move towards the positive charges.
The electromagnetic force is a very strong force. It is responsible for holding atoms together, for the chemical reactions that take place between atoms, and for the electricity that powers our homes and businesses.