Pakistan's shortest border is with China. Hugged away in the northeast, the border between the two countries extends for around 523 to 599 km. The rest are much longer: 2,430-2,640 km with Afghanistan, 909 km with Iran, and 2,100-3,323 km with India.