The diagram shown below explains that:
Like charges repel each other.
Like charges repel each other because of the repulsive forces acting between them. Meanwhile, unlike charges attract each other because of the attractive forces acting between them.