thereafter, he put an end to the war between frederick iv of dampierre, count of toul, and the cathedral canons, and by 1177 had rebuilt the castle of liverdun, destroyed in the strife, making it and the associated town a nexus of power in the diocese. in order to lure settlers, he offered a charter of freedom to the local community, the first to be issued in lorraine. in 1178, peter received the right to mint his own coinage from the emperor.