The process by which soil is formed including weathering, biotic and abiotic factors, soil erosion, and deposition.