king "elephants of rare strength, women and treasure". Mahipala also gained control of north and south Bihar, probably aided by the invasions of Mahmud of Ghazni, which exhausted the strength of other rulers of North India. He may have also conquered Varanasi and surrounding area, as his brothers Sthirapala and Vasantapala undertook construction and repairs of several sacred structures at Varanasi. Later, the Kalachuri king Gangeyadeva annexed Varanasi after defeating the ruler of Anga, which was probably Mahipala's son Nayapala. Second period of decline Nayapala, the son of Mahipala I, defeated the Kalachuri king Karna (son of Ganggeyadeva) after a long struggle. The two later signed a peace treaty at the mediation of the Buddhist scholar Atiśa. During the reign of Nayapala's son Vigrahapala III, Karna once again invaded Bengal but was defeated. The conflict ended with a peace treaty, and Vigrahapala III married Karna's daughter Yauvanasri. Vigrahapala III was later defeated by the invading Chalukya king Vikramaditya VI. Vigrahapala III also faced another invasion led by the Somavamsi king Mahasivagupta Yayati of Orissa. Subsequently, a series of invasions considerably reduced the power of the Palas. The Varmans occupied eastern Bengal during his reign. The successor and older son of Vighrahapala III by his wife Yauvanashri, Mahipala II's reign is well-documented by Sandhyakar Nandi in Ramacharitam. Mahipala II imprisoned his brothers Ramapala and Surapala II, on the suspicion that they were conspiring against him. Soon afterwards, he faced a rebellion of vassal chiefs from the Kaibarta (fishermen). A chief named Divya (or Divvoka) killed him and occupied the Varendra region. The region remained under the control of his successors Rudak and Bhima. Surapala II escaped to Magadha and died after a short reign. He was succeeded by his brother Ramapala, who launched a major offensive against Divya's nephew Bhima. He was supported by his maternal uncle Mathana and cousin Sivarajadeva of the Rashtrakuta dynasty, as well as several feudatory chiefs of south Bihar and south-west Bengal. Ramapala conclusively defeated Bhima, killing him and his family in a cruel manner. Revival under Ramapala After gaining control of Varendra, Ramapala tried to revive the Pala empire with some success. He ruled from a new capital at Ramavati, which remained the Pala capital until the dynasty's end. He reduced taxation, promoted cultivation and constructed public utilities. He brought Kamarupa and Rar under his control, and forced the Varman king of east Bengal to