For example, the San Joaquin River carries sediment from the Sierra Nevada mountains to the Pacific Ocean. The river slows down when it enters the ocean, and sediment settles to the seafloor. Over time, this sediment will be buried,
, and cemented to form
rock.