Geology is basically the study of rocks and minerals, which through weathering also form the basis for mineral soil -- the inorganic component of soils. See also soil science.