An electron is a negatively charged subatomic particle and a proton is a positively charged subatomic particle. Positive charge(s) attract negative charge(s) and vice versa. The proton and neutron stay together and attract one another to give the atom an overall charge of zero (neutral). Which is the charge of an atom. When there is an unequal number of protons and neutrons an ion is formed. If the number of protons are more than the electron, a positively charged ion called cation is formed. On the other hand, if the number of electrons are more than the protons a negatively charged ion called anion is formed.
When an atom has an equal number of electrons and protons, it has an equal number of negative electric charges (the electrons) and positive electric charges (the protons). The total electric charge of the atom is therefore zero and the atom is said to be neutral. ... Chemically, we say that the atoms have formed bonds.