Quetta (, , ) is a district in the north-west of the Balochistan province of Pakistan, on the border with Kandahar province, Afghanistan. It is part of Quetta Division. The district is famous for its agriculture produce, most notably fruit orchards but also including apples and grapes. The Hanna Valley is an area where almonds are grown. The population counted in the 1998 census was , while in 2010 it was estimated at . History The ancient name of Quetta was Shalkot, a term by which it is still known among the people of the country. The district was held in turns by the Ghaznavids, Ghurids, and Mongols, and towards the end of the fifteenth century was conferred by the ruler of Herat on Shah Beg Arghun, who, however, had shortly to give way before the rising power of the Mughals. The Ain-i-Akbari mentions both Shal and Pishin as supplying military service and revenue to Akbar, however these areas passed with Kandahar to the Safavids. On the rise of the Khilji power in Kandahar at the beginning of the eighteenth century, simultaneously with that of the Baloch in Kalat, Quetta and Pishin became the battle-ground between Afghan and Baloch, Ahmad Shah Durrani finally handed Quetta over to the Khan of Kalat Nasir I for helping him against Persians in 1751, against the Marathas in Third Battle of Panipat (1761) and against the Sikhs in 1765. British Era During the 19th century Quetta (Shalkot) was captured by the British troops during the Second Anglo-Afghan War of 1879. On the advance of the British Army of the Indus in 1839, Captain Bean was appointed the first Political Agent in Shalkot, and the country was managed by him on behalf of Shah Shuja-ul-mulk. After Sir Robert Sandeman's mission to Kalat in 1876, the Quetta Fort was occupied by his escort and the country was managed on behalf of the Khan of Kalat up to 1883, when it was leased to the British Government for an annual rent of Rs. 25,000 through a treaty between Khan and the British Empire. It was formed, with Pishin and Shorarud, into a single administrative charge in 1883. Up to 1888 Old Chaman was the most advanced post on the frontier; but, on the extension of the railroad across the Khwaja Amran, the terminus was fixed at its present site, from that place. The boundary with Afghanistan was