Original: This wall was constructed during the reign of King Kirthi Sri Rajasingha, to protect it from wild elephants which might have damaged the tree.
Simplified: This wall was built during the reign of King Kirthi Sri Rajasingha, to protect it from wild elephants which might have attacked the tree.