Complex sentence: Construction of the Palace was ordered by the Regent Maria Cristina, who wanted a new residence for the Court in 1645, when the Regent's son was about to come back from the Civil War.
Split into simpler sentences: Construction of the Palace was ordered by the Regent Maria Cristina in 1645. She wanted a new residence for the Court once her son returned from the Civil War.