Atoms are the basic units of matter, consisting of protons, neutrons, and electrons. Molecules are formed when two or more atoms bond together.