Elements can combine to form molecules, like O2 or CO2. Elements combine to form molecules and these elements are joined together by

Achemical bonds.
Bnuclear energy.
Csharing nuclei.
Dattractive forces.