The layers of rocks are related with each other because they work as one to form one. One cannot work without a support.
Layered rocks form when particles settle from water or air. Steno's Law of Original Horizontality states that most sediments, when originally formed, were laid down horizontally. ... Stratigraphy deals with all the characteristics of layered rocks; it includes the study of how these rocks relate to time.