Hereafter the boundary continues along Pyanj river for 1080 kilometers , the surrounding area becoming increasingly mountainous as the river traces a huge horse-shoe shape, up to the confluence with the Pamir River near the Afghan village of Gaz Khun.