Sun as a natural factor helps in the formation of soil. Explain

Sun helps in soil formation as Sun heats up the rocks during the day so that they expand. At night, these rocks cool down and contract. All parts of the rocks db hot expand and contract at the same rate and this results in formation of cracks and finally breaking of huge rocks into smaller pieces.