Dharamapala, the second ruler of Pala dynasty was a pious Buddhist King and is best known for establishing the Vikramshila University.
Dharampala had also built a Vihara at Somapuri, another at Paharpur and yet another Vihara at Odantapuri. The five places viz. Nalanda, Vikramshila, Somapuri, Paharpur and Odantapuri are called Five Mahaviharas. Bakhtiyar Khilji destroyed the Vikramshila University in 1200 AD. Somapura Mahavihara is now located in Bangladesh. It is one of the best known Mahaviharas of Buddhism in Indian subcontinent and is a UNESCO World Heritage Site.