Chemical bonds result from the attraction between positively charged nuclei and negatively charged electrons. There are three main types of bonding: ionic, metallic, and covalent. Ionic bonding involves the transfer of electrons between atoms to form ions with opposite charges that are attracted to each other. Covalent bonding involves the sharing of electrons between nonmetal atoms. Molecules form through covalent bonds and have molecular formulas that describe the number and type of atoms present. The shape and polarity of molecules can be predicted from their Lewis structures.