During the daytime, the sun shines down on the desert and warms up the sand. The sand heats up because it soaks up the sun's rays, making the desert very hot. But when the sun sets and goes down, the sand stops getting warm. Since the desert doesn’t hold onto heat well, it cools down very fast, and that is why the desert gets cold quickly at night.