The process by which atoms and molecules combine and recombine over time to create new chemical compounds.