 Pope Boniface IX and Margarethe came to a peace agreement, her excommunication was lifted and with the help of Cardinal Angelo Acciaioli Margaret could continue to serve as regent until July 1393.In the last years of her life, the queen dowager retired first to Salerno and then to Acquamela, where she died of plague in 1412.She had become a devout Catholic and a member of a Franciscan Third Order in her last years and requested to be buried as such; she was buried in white habit in Salerno Cathedral.