ionic bonds
until all atoms have octets. Because some atoms will lose electrons and some atoms will gain electrons, there is no overall change in the number of electrons, but individual atoms acquire a nonzero electric charge. Those that lose electrons become positively charged, and those that gain electrons become negatively charged. Charged atoms are called ions. Because opposite charges attract while like charges repel , these oppositely charged ions attract each other, forming ionic bonds. The resulting compounds are called ionic compounds and are the primary subject of this chapter. The second way for an atom to obtain an octet of electrons is by sharing electrons with another atom. These shared electrons simultaneously occupy the outermost shell of more than one atom. The bond made by electron sharing is called a covalent bond. Covalent bonding and covalent compounds will be discussed in Chapter 4 "Covalent Bonding and Simple Molecular Compounds".