In 1660, Anne de Montpensier sold the Luxembourg to her younger half-sister, Élisabeth Marguerite d'Orléans, Duchess of Guise. The Duchess, in turn, gave it to her cousin, king Louis XIV, in 1694. In 1717 Philippe, Duke of Orléans, Regent of France gave the palace to his favourite daughter the Duchess of Berry. The building became infamous for the duchess's parties and sexual activities. She also hosted Peter the great there in 1717.