 In time, Casimir was able to wrest power from Cardinal Oleśnicki and his group.He replaced their influence with a power base built on the younger middle nobility.Casimir was able to resolve a conflict with the pope and the local Church hierarchy over the right to fill vacant bishop positions in his favor.