The process of mass transfer of matter from areas of high activity to low activity, or of energy where heat is transferred from higher temperatures to regions of lower temperature, over time. Diffusion is generally driven by thermal vibration of the mass.