As a mountain stream moves into a flat area, it slows down and loses its capacity to carry as much alluvium as it did upstream, depositing the excess in sandbars throughout the channels. Over time, the channel migrates back and forth, creating fan-shaped deposits known as alluvial fans.