Covalent bonding occurs when two nonmetal atoms share pairs of electrons to acquire stable electron configurations. Atoms form covalent bonds by sharing electrons, with the shared electrons shown as dots in Lewis dot structures. The three major types of bonding are ionic bonding, metallic bonding and covalent bonding. Covalent bonding forms molecules by electron sharing between nonmetal atoms.