During a chemical reaction, atoms can form molecules, molecules can break apart to form atoms, or molecules can react with other molecules.
Replace another in a molecule happens to atoms during a substitution reaction.