The action of the combined primary (weathering and humification) and secondary processes to alter and to rearrange mineral and organic material to form soil, involving the differentiation of soil profiles and the formation of loose soil from consolidated rock material. See also pedogenesis.