Original: Fluids such as wind and water, as well as sediment gravity flows, transport previously eroded sediment, which, at the loss of enough kinetic energy in the fluid, is deposited, building up layers of sediment.
Simplified: Deposition happens when the forces that transport sediments are weaker than the forces of particle weight and friction, which resist motion.