The effect of Coulomb's force on electric charges depends on their sign. While gravity acts only as an attractive force, the possible combinations of signs of the charges make Coulomb's force either repulsive or attractive:
If both charges have the same sign, Coulomb's force is repulsive;
If the charges have opposite sign, Coulomb's force is attractive.
This different nature is among the thing that permits the existence of atoms! Read more