After the British came to the North-west Frontier for occupation, they faced strong resistance from the local
Pashtun population. A number of expeditions were sent to every area that did not pay revenue or dismissed British rule. Hangu valley was no exception. However, when Hangu's borders were continually attacked by
Wazir tribes in adjacent Waziristan, especially the city of
Thall, Hangu had to cease fire after the first Miranzai expedition. However, with the Waziristan tribes still continuing their raids on British garrisons and Hangu villages, the Khan sought revenge for betrayal and an alliance with the British was made to put an end to the rebels once and for all. The second Miranzai expedition was led by General Chamberlain, Muhammad Amin Khan, who was a cousin of the Khan of the time 'Ghulam Haider Khan' and Captain Coke. Amin Khan knew how to deal with the Wazirs and therefore was present in the British contingent. The expedition was a success and succeeded in crushing the raiders, forcing them to submit and pay revenue. Some Turi tribe elements, also involved in the raids, were also dealt with. Turis were allied to the Bangash of
Thall but later turned their backs against them. Ghulam Haider Khan died when his eldest son, Khan Bahadur Allahyar Khan, was still very young. This led to the decision of making Ghulam Haider Khan's brother, Muzaffar Khan, the chief. The title of Khan was confirmed to Muzaffar Khan despite Captain Coke's insistence on making another man, loyal to him, the chief. On this Captain Coke resigned. ==Political and international affairs==