Ancient King of Sri Lanka,  King Kasyapa built his royal palace on the top of the  rock and decorated  with colorful  frescoes.  The capital  and the palace was abandoned after the  death of the king.  It was used as a Buddhist monastery until the 14th Century. It is a heritage site listed by the UNESCO and many travelers  visit this  picturesque historic site.