This was an agreement between Sudan and Egypt.
You an actually see on the map that Egypt and Sudan share the Nile: Sudan has the Southern Part and Egypt has the northern part.
The Agreement allowed Sudan to build a dam in a way that did not deprive Egypt of water.