The birth of the child of the Bavarian electoral couple of Savoy was the reason that the construction of the summer residence Schloss Nymphenburg was begun in 1664. It was not until 1679 that the palace was completed according to the plans of the architect Agostino Barelli, who had also designed the Theatinerkirche in Munich. In the following decades, Nymphenburg Palace was then redesigned and extended several times. Under Elector Max Emanuel, who ruled from 1680 to 1726, the palace then took on its present form. Over the centuries, the summer residence became the declared favourite residence of the Bavarian kings. King Ludwig II was born here on 25 August 1845.