It heats up the rocks during the day. Heating causes the rocks to expand. During night, the rocks cool and contract. Different parts of a rock expand and contract at different rates resulting in its cracking and breaking up into smaller pieces or fragments.