Scientists experimented and observed the elements and their behaviour which helped them figure out the existence of atoms and frame the atomic theory.