Oxygen (O2) is a diatomic molecule composed of two identical nonmetal atoms. The bond between these atoms is formed by sharing electrons, resulting in a covalent bond. Since the electrons are shared equally between identical atoms, the bond is nonpolar covalent.