In 1840 the Mir was on the verge of surrendering to the British forces in Afghanistan and had negotiated the details of this surrender with Sir Alexander Burnes. However, according to Scottish historian William Dalrymple, the British refused to honor this agreement.[15]