Water plays an important role in most aspects of sedimentary rocks.
The sediment of the water was so dirty that it caused the the sand to be sedimentary.
Sedimentary rock forms from particles that were transported from somewhere else.