Deserts have extreme temperatures because of their lack of vegetation or water to moderate the climate. During the day, the sun's rays heat up the desert floor quickly due to the lack of shade from plants, leading to high temperatures. At night, without vegetation to trap heat, the desert cools down rapidly, causing temperatures to drop significantly. This cycle of extreme heating and cooling results in the extremely high daytime temperatures and low nighttime temperatures characteristic of deserts.