Hafiz Rahmat Khan Barech
Hafiz Rahmat Khan (1723 – April 1774) was the Regent of Rohilkhand in North India, from 1749 to 1774. He was a Pashtun by background, ruling over Rohillas. Hafiz Rahmat Khan had served honorably throughout the reign of three Mughal Emperors: Ahmad Shah Bahadur, Alamgir II and Shah Alam II. He was also a mentor of Prince Mirza Jawan Bakht. Early life and origins
In 1673 two Pashtun brothers of the Barech Durrani tribe, Shah Alam Khan and Husain Khan, come from frontier to settle in the Katehr region. Hafiz Rehmat Khan was the son of Shah Alam Khan. Victory against Ahmad Shah Durrani (1748)
In the year 1748, Ahmad Shah Durrani led an expedition to plunder the western regions of the Mughal Empire. This incursion posed as a major challenge to the Mughal Emperor Muhammad Shah, who urgently Asaf Jah I from the Deccan in order to lead the Mughal Army based in the North-West South Asia, this army was also headed by Prince Ahmad Shah and according to the advice of Ali Mohammed Khan, Hafiz Rahmat Khan was appointed as the Subedar of Sirhind in order to lead and regain and recover territories from the Durrani, forces even Muradyab Khan Kalhoro the Subedar of Sindh to dispatch reinforcements to assist the Mughal Army along the river banks. Prince Ahmad and the respected Grand Vizier Asaf Jah I were dispatched by the Mughal Emperor Muhammad Shah to command a large Mughal Army of 75,000 to confront the advancing Durrani's. At Sirhind both forces fought a decisive battle and Prince Ahmad was nominally victorious. He was thereupon conferred with the title Bahadur, by the Mughal Emperor. Mughal Civil War
According to a Firman by Ahmad Shah Bahadur Hafiz Rahmat Khan was assigned to support Feroze Jung III against the Mughal Grand Vizier Safdarjung, who was defeated and forgiven and thus withdrew to become just the Nawab of Awadh and died in 1753. When Ahmad Shah Bahadur tried to have young Feroze Jung III removed from the imperial court, the outcast then sought an alliance with the detested Maratha chieftain Sadashivrao Bhau. Together they deposed Ahmad Shah Bahadur after the devastating First Battle of Sikandarabad in the year 1754. Since then Hafiz Rahmat Khan entered the service of Najib-ul-Daula and constantly fought the Marathas led by Sadashivrao Bhau and opposed Feroze Jung III. Alliance with the Ahmad Shah Durrani
In 1757, the Mughal Emperor Alamgir II with courtiers such as Najib-ul-Daula and Hafiz Rahmat Khan, nobles such as Shah Waliullah and the imperial family went to Sirhind to meet Ahmad Shah Durrani, whose forces then engaged the Marathas in combat and threatened to overthrow and execute the regime of Imad-ul-Mulk. Ahmad Shah Durrani's relations with the Mughal Emperor, strengthened further when his son Timur Shah Durrani married the daughter of Alamgir II and patronized the Mughal commander Jahan Khan. Third Battle of Panipat
He played an important part in Indian warfare over several decades, being on the winning side of Afghans at the Third Battle of Panipat of 1761, but was defeated and killed in the Rohilla War. Counterattacks against Suraj Mal
In the year 1764, Najib-ul-Daula the administrator of Delhi and the Mughal heartlands faces the relentless warfare by Jat peasants led by Suraj Mal, who sacked the Mughal Army garrison at Agra and even looted the silver doors of the Taj Mahal. Internal conflict with Awadh
After the war Nawab Shuja-ud-Daula demanded payment for their help from the Rohilla chief, Hafiz Rahmat Khan Barech. When the demand was refused the Nawab joined with the British under Governor Warren Hastings and his Commander-in-Chief, Alexander Champion, to invade Rohilkhand and Hafiz Rahmat Khan Barech was killed in the ensuing Battle of Miranpur Katra in 1774. The whole of Rohilkhand (including Bareilly, Pilibhit and Shahjanpur) was surrendered to the East India Company by the treaty of 10 November 1801. Later, Bareilly was a centre of rebellion for the entire area in the Indian Mutiny of 1857. He founded the town of Pilibhit, where he also built a Jama Masjid, a replica of the Jama Masjid, Delhi

Descendants
Hafiz Rehmat Khan's son, Muhabbat Khan Khan, wrote the Riaz-ul-Mahabbat for the Pashto language. He was however a native of India, and many peculiarities regarding the verbs and tenses, of which he must have been ignorant, have been omitted. 