The city is located at the southern edge of the Sahara, near the Niger River, which has headwaters in the highlands very near the Atlantic coast before its long 3200 kilometers journey to the north east, before finally turning south to reach the Atlantic.