As one molecule moves "downhill" (with its gradient), it provides the energy to pull another molecule "uphill" (against its gradient). There are two types:
A helpful paper for understanding is:
If cells relied solely on diffusion (High to Low), they would eventually reach equilibrium with their environment, resulting in cell death. Active transport is essential for: active transport low to high