Diffusion occurs because of the random motion of molecules. As molecules move and collide, they spread out evenly through the medium. In biological systems, this process is influenced by various factors such as the concentration gradient, temperature, and the characteristics of the membrane through which diffusion occurs. The cell membrane plays a significant role in regulating diffusion, as it is selectively permeable.