In the centre of the complex are the ruins of the Royal Palace of King Parakramabahu the Great (1164-1196 AD). It had been a massive wood and stone structure seven storeys in height, with a floor plan of 31m by13m (100ft by 43ft).The upper floors were of wood, but now only the massive, and 3m (10ft) thick lower walls survive.