 After Herat, the river turns northwest, then north, forming the northern part of the border between Afghanistan and Iran.Farther north it forms the south-eastern part of the border between Iran and Turkmenistan.The Iran–Turkmenistan Friendship Dam is on the river.