Complex sentence: The capital and the royal palace were abandoned after the king's death, it was used as a Buddhist monastery until 14th century.
Split into simpler sentences: The capital and the royal palace were abandoned after the king's death. It was used as a Buddhist monastery until 14th century.