Sediments are compacted by the weight of the rocks and sediments above them.
(Sediments; are compacted; by the weight of the rocks and sediments above them)
Sediments
are compacted
by the weight of the rocks and sediments above them