Soil is classified based on its composition and texture. It is categorized into different types based on the relative proportions of sand, silt, and clay particles present in it.