Reaction rates depend on how often the reacting atoms and molecules encounter one another, on the temperature, and on properties of the reacting species.
Replace another in a molecule happens to atoms during a substitution reaction.