for two years more the fighting continued with varying success, until charles of valois, who had been sent by boniface to invade sicily, was forced to sue for peace, his army being decimated by the plague. in august 1302 the treaty of caltabellotta was signed, by which frederick was recognized king of trinacria (the name sicily was not to be used) for his lifetime, and was to marry eleanor of anjou, daughter of charles ii of naples and maria arpad of hungary. at frederick's death, the kingdom was to revert to the angevins (this clause was inserted chiefly to allow charles to save face) and frederick's children would receive compensation elsewhere. boniface tried to induce king charles to break the treaty, but the latter was only too anxious for peace. finally, in may 1303, the pope ratified the treaty, albeit with changes and additions, which included frederick agreeing to pay him a tribute.