The tables were turned during the reign of king Mahasena (277 to 304 CE), which was marked by his support of Mahāyāna Buddhism and repression of the Mahāvihāra, which refused to convert to Mahāyāna. Mahasena went as far as to destroy some of the buildings of the Mahāvihāra complex in order to build up Abhayagiri and a new monastery, the Jetavana. Due to this, Abhiyagiri emerged as the largest and most influential Buddhist tradition on the island, and the Mahāvihāra tradition would not regain its dominant position until the Polonnaruwa period in 1055.