Why do most people in the Sahara tend to live along the Nile River or the Mediterranean coast?

Most people in the Sahara tend to live along the Nile River or the Mediterranean coast because these areas provide access to water, which is essential for survival in the desert environment. The Nile River is a major source of water in the region, providing fertile soil for agriculture and supporting settlements along its banks. The Mediterranean coast also offers access to water and resources for trade and transportation. Additionally, these areas tend to have milder temperatures and more moderate climates compared to the harsh desert conditions found further inland.