Ali Masjid (Pashto and Urdu: علی مسجد) is the narrowest point of the Khyber Pass. It is located in Khyber District of Khyber Pakhtunkhwa, Pakistan. It is around 10 miles (16 km) east of the city of Landi Kotal (West of Peshawar) and has an elevation of 3,174 feet (967 m). The width of the Khyber near Ali Masjid was earlier too narrow for two fully laden camels to pass each other, but since has been widened.[1] It was named in memory of Ali, the cousin of the Islamic prophet Muhammad. A mosque and a shrine has been built here in the memory of Ali, who visited this place according to a local tradition. There is also a huge boulder which carries the marks of a hand believed to be that of Ali. Ali Masjid Fort (Pashto:علي مسجد فورټ; Urdu: علی مسجد فورٹ) is situated on a high location above Ali Masjid, the narrowest point of the Khyber Pass,[1] in the Khyber Pakhtunkhwa province on the north west frontier of Pakistan.[2] Originally within Afghanistan, the fort was first constructed in 1837 under Emir Dost Muhammad Khan, and was the location for a number of conflicts between Afghan and British-led forces during the 19th century. The fort was captured by the British in 1839 during the First Anglo-Afghan War,[3] and again in November 1878 during the Second Anglo-Afghan War at the Battle of Ali Masjid.[4] In May 1879 the Khyber Pass was ceded to British control by the Treaty of Gandamak, after which the fort was within the British Raj.[5] In 1947 it became a part of Pakistan.