They believed that there were uncountable numbers of atoms but that they could only form a finite number of different combinations. When things die the atoms they contain are dispersed and become part of other combinations.
They left no room for god in their theorizing. Their theory, called atomism, opened the door to additional scientific inquiry.