The construction of the palace began in 1664 and continued for several years under the direction of multiple architects and craftsmen. The main building was completed around 1682, while subsequent additions and renovations took place over the following decades.