Sand comes from rocks that have been broken up by weathering. Some rocks are broken down into sand right in the desert. Other sand grains are picked up by the wind and carried hundreds of miles to the desert.
Hot days and cool nights make rocks expand and contract. Natural cracks in bedrock gradually widen until pieces begin to break off. Large blocks are broken down into smaller and smaller pieces.