In Arabia, the ancestor's of the dynasty took part in many rebellions against Abbasid authority. One ancestor, Isa bin Zayd, revolted against the Caliph Al Mahdi and was consequently poisoned by that caliph at the age of 45. Subsequently, the dynasty were heavily persecuted by the Abbasid government, and eventually the founder of the Barha dynasty, Abul Farah Al Wasiti, fled from Madina to Wasit and from there he fled to the Ghaznavid Empire. His four sons entered into the military service of Sultan Mahmud of Ghazni and received twelve fiefs in Punjab, then a part of the Ghaznavid Empire, as reward for their service. Thus the dynasty became quickly established as Nobles of the Sword in ancient India, a status they held under several different empires. They held a particularly high status under the Sultanate of Delhi. When the Chief of the Barha, who was also the Diwan of the empire, was granted the fief of Saharanpur due to his relation with the imperial family. They also enjoyed particularly prominent positions under the reign of the Sur, eventually defecting during the last days in the reign of Sikander Sur of the Sur Empire, to the Emperor Akbar of the Mughal Empire in the course of the siege of Mankot .