What Causes Deserts?

Most deserts are formed by dominating winds and various weather patterns that take place over thousands upon thousands of years. However, the majority of deserts are generally caused by rain shadows, which are blocks of mountain ranges, that prevent rain and other precipitation from reaching the previous ocean.