One result of weathering of rocks is the formation of soils.
Since weathering of rocks breaks down the surface of rocks, it affects the ground beneath them. This in turn results in formation of various kinds of soils, so I'd say B is the correct answer.