Why was the Aswan High Dam Built?

The Aswan Dam is actually two dams. But the name usually refers to the newer one which is the High Dam. The full construction of the High Dam was finished in 1970.