Much of the Earth's geology consists of successional layers of different rock types, piled one on top of another.
The most common rocks observed in this form are sedimentary rocks (derived from what were formerly sediments), and extrusive igneous rocks (e.g., lavas, volcanic ash, and other formerly molten rocks extruded onto the Earth's surface).
The layers of rock are known as "strata", and the study of their succession is known as "stratigraphy".
Fundamental to stratigraphy are a set of simple principles, based on elementary geometry, empirical observation of the way these rocks are deposited today, and gravity.
It can't float in mid-air, particularly if the material involved is sand, mud, or molten rock.