The interaction between atoms to form molecules and compounds, including covalent, ionic, and metallic bonding.