They repeal each other (in air and vacuum, for liquids it might be different) because of the electostatic force.
I had the same question; the answer is Metallic Bonding.
Ionic bonds are held together by the attraction between positively charged ions (cations) and negatively charged ions (anions). This attraction is due to the electrostatic force between the oppositely charged ions.
Well, an electrically balanced atom aka a neutral atom has an even number of electrons and protons. If an atom has more or less electrons than it does protons it is either negatively charged, or positvely charged. These positively/negatively charged atoms are also called ions.
They become positively charged ions.
Ions remain together in a compound due to electrostatic attraction between opposite charged ions. This attraction, known as ionic bonding, is strong enough to hold the ions together in a stable structure. The arrangement of ions in a compound is dictated by the ratio of positive to negative charges to achieve overall charge balance.
The force that binds oppositely charged ions together is called electrostatic attraction. This force is due to the attraction between the positive and negative charges on the ions. It is responsible for holding ions together in ionic compounds.
The strength of the ionic bonds and the attraction among all the ions.
Mad up of positively charge cations and negatively charged anions.
When ionic compounds form, electrons are transferred from a metal atom to a nonmetal atom, creating positively and negatively charged ions. These oppositely charged ions then attract each other, forming a stable crystal lattice structure. The strong electrostatic forces between the ions hold the compound together.
In magnesium oxide, the magnesium ions (Mg2+) and oxide ions (O2-) are held together by ionic bonds. The magnesium ions are positively charged and attract the negatively charged oxide ions, forming a strong bond between them. The attraction between the ions keeps them together in a stable crystal lattice structure.
Ions stick together in chemical compounds because of electrostatic attraction between positively and negatively charged ions. This attraction forms strong bonds that hold the ions together in a stable structure.
An ionic compound is formed when ions combine. These compounds are made up of positively charged ions (cations) and negatively charged ions (anions), which are held together by strong electrostatic forces.