Deserts are formed when something gets in the way of rain clouds. This can be caused by winds or mountains. Some deserts are near oceans. The Mediterranean Sea is near the Sahara desert. California is another good example of a desert by the sea. Deserts by bodies of water are usually caused by winds.