Rocks are compounds of elements and elements are aggregates of minerals.