It rises near Hamadan, in the Zagros Mountains of Iran. It then descends through the mountains, where for some 32 km it forms the border between the two countries. It finally feeds into the Tigris below Baghdad. Navigation of the upper reaches of the Diyala is not possible because of its narrow defiles, but the river's valley provides an important trade route between Iran and Iraq.