The original building was built in the 13th century, but in the 17th century the palace was expanded and transformed into a residency.