Complex sentence: In 1833, the infanta Ana de Jesus Maria and her husband, the 1st Duke of Loulé, rented part of the palace, as did Amélie de Beauharnais (widow of Pedro I of Brazil) when she lived there between 1841 and 1849.
Split into simpler sentences: In 1833, the infanta Ana de Jesus Maria and her husband, the 1st Duke of Loulé, rented part of the palace. The same happened when Amélie de Beauharnais (widow of Pedro I of Brazil) lived there between 1841 and 1849.