What body of water was important to both Mali and Songhai?

The Niger River was important to both Mali and Songhai.