In ancient days Abayagiri Vihara building complex had many floors. This was founded in first century BC. The vihara was established by King Vattagamini Abhaya(Valagamba). In 5 th and 6th century AD Abhayagiri Vihara had develloped in to a leading religious and educational institution.