By the result of the formation of positive and negative ions, Ionic compounds are formed.
Explanation:
Electrons are actually transferred from one atom to another to form rare gas electron structures for each ion. The atom which forms a positive ion loses electrons to the atom which gains electrons to form a negative ion. A compound is not stable unless the number of electrons which are lost and gained are equal