Diffusion is the mass transport of atoms in solids by atomic motion. There are two main mechanisms: vacancy diffusion, where atoms exchange with vacancies in the lattice, and interstitial diffusion, where smaller atoms diffuse between lattice sites. The rate of diffusion depends on factors like temperature, activation energy, and the concentration gradient. Fick's laws can be used to calculate the flux of diffusing atoms and model diffusion processes. Controlling diffusion is important for applications like alloy processing and semiconductor doping.