Hayward's official Royal Geographical Society mission was to explore the
Pamirs and their routes and approaches. After being rebuffed by officials from approaching the Pamirs via the Northwest Frontier he travelled to
Ladakh and onwards to
Kashgaria with the intention of approaching the Pamirs from there. Another Englishman,
Robert Shaw, uncle of Sir
Francis Younghusband, was making a similar journey to Yarkand and Kashgar at the same time. Shaw seems to have resented Hayward's presence, and although they were often within a few hundred metres of one another, they only met once at the start of their approach to Kashgaria, and then again many months later. While awaiting permission to proceed at the Kashgaria border Hayward escaped from his guards and spent 20 days exploring and charting the course of the
Yarkand River. Shaw reached Kashgaria in December 1868 after sending ahead envoys announcing his arrival and carrying with him gifts for
Yakub Beg. Yakub Beg had just made himself ruler of Kashgaria after the Chinese had been driven out by the
Dungan Revolt (1862–77). A few weeks after Shaw's arrival he was joined by Hayward. Hayward sent no envoy and hand no gifts but convinced the border guards he was with Shaw. Shaw was disturbed by this as he figured Hayward would be stopped at the border. In Yarkand, Hayward and Shaw were kept separately under house arrest. Later, Shaw was allowed to proceed to Kashgar to meet with Yakub Beg. After a warm reception, Shaw found himself once again under house arrest. A few weeks later, Hayward arrived in Kashgar: he too was placed under house arrest. The two were able to communicate by passing secret notes. Neither man knew at the time, but they were being held while Yakub Beg was waiting for the response to his recent envoy to Russia. When no positive response came from Russia, Shaw again was allowed an audience with the King. Afterwards, he was free to return home and was able to arrange for Hayward's release as well as that of Mirza Shuja, a
Pundit exploring the region for Britain. For his efforts exploring the Kun Lun and
Karakoram mountains, and the route of the Upper Yarkand River during his approach to Kashgaria, Hayward was awarded the Royal Geographical Society's
Founder's Medal. ==Himalayas, Hindu Kush and source of the Oxus==