Ripples in beach sand , such as those in the upper photograph (A) may someday become a rock like the sandstone in the lower photograph (B). This sandstone was part of a beach over 200 million years ago in the Triassic period.
Both images courtesy of Martin Miller, University of Oregon