first Muslim invasion, Lahore was in possession of a Chauhan prince, of the family of Ajmer. The city was besieged by Muslim forces lead by Al-Muhallab ibn Abi Sufra. Whether owing to change of dynasty, or to Lahore's exposed position on the high road from Afghanistan to India, it was subsequently deserted and the seat of the government was removed to Sialkot or its vicinity, where it remained until the period of the invasion of Mahmud of Ghazni in the beginning of the eleventh century; that the conqueror re-occupied the deserted city, and established a garrison in a fort, which was built possibly, like the Old Fort at Delhi, on the ruin of the old Rajput stronghold. In 682 AD, according to Ferishta, the Afghans of Kerman and Peshawar, who had, even at that early period, embraced the religion of the Prophet, wrested certain possession from the Hindu prince. A war ensued, and in the space seventy battles were fought with varied success, until the Afghans, having formed an alliance with the Ghakkars, a wild tribe inhabiting the Salt Range of Punjab, compelled the Raja to cede a portion of his territory. The next mention of Lahore is in the Rajputana chronicles, where the Bussas of Lahore, a Rajput tribe, are mentioned as rallying to the defence of Chittore, when besieged by Muslim forces in the beginning of the ninth century. At length, in 975 AD, Sabaktagin, Governor of Khorassan and father of the Mahmud advanced beyond the Indus. He was met by Jeipal, the Raja of Lahore whose dominion is said to have extended from Sirhind to Lamghan and from Kashmir to Multan. By the advice of the Bhati tribe, the Raja Jeipal formed an alliance with the Afghans, and, with their aid, was enabled to withstand the first invasion. However, Sabaktagin later repeated his invasion on his succession to the throne of Ghazni. A battle ensued in the vicinity of Lamghan ending with the defeat of the Raja and overtures being made for peace. His terms were accepted and persons were sent, on the part of Sabaktagin, to take the balance of the stipulated ransom. On reaching Lahore, Jeipal proved faithless and imprisoned those commissioned to receive the treasure. On learning intelligence of his perfidy, Sabaktagin, in the words of the Ferishta, "like a foaming torrent, hastened towards Hindustan". Another battles ensued, in which Jeipal was again vanquished,