When Ramon Berenguer died on 19 August 1245, he left Provence to his youngest daughter, and his widow was granted the usufruct of the county of Provence for her lifetime. Beatrice's daughter and namesake then became one of the most attractive heiresses in medieval Europe. Frederick II, Holy Roman Emperor sent a fleet and James I of Aragon sent an army to seize her, so Beatrice placed herself and her daughter in a safe fortress in Aix, secured the trust of its people then sent to the Pope for his protection. The Pope was also a target for Frederick's military incursions in France. In Cluny during December 1245, a secret discussion, between Pope Innocent IV, Louis IX of France, his mother Blanche of Castile, and his brother Charles of Anjou, took place. It was decided that in return for Louis IX supporting the Pope militarily, the Pope would allow Charles of Anjou, youngest brother to the French King, to marry Beatrice of Provence. Mother and daughter were satisfied with this selection. But Provence was to never go to France outright through Charles. It was agreed that if Charles and Beatrice had children, the county would go to them; if there was no issue, then the county would go to Sanchia of Provence. If Sanchia died without an heir, Provence would go to the King of Aragon.