Starting in 1701, Maximilian Emanuel, the heir to Bavaria, a sovereign electorate of the Holy Roman Empire, undertook a systematic extension of the palace. Two pavilions were added each in the south and north of Barelli's palace by Enrico Zucalli and Giovanni Antonio Viscardi and were connected with the centre pavilion by two gallery wings. In 1716, Joseph Effner redesigned the facade of the centre pavilion in French Baroque style with pilasters. Later, the south section of the palace was further extended to build the court stables (1719). For the sake of balance, the orangery building was added to the north which was only completed in 1758. Finally, Nymphenburg Palace was completed with a grand circle (the "Schlossrondell") of Baroque mansions (the so-called Kavaliershäuschen – cavalier's lodges) erected under Maximilian Emanuel's son Holy Roman Emperor Charles VII Albert.