 There was a fierce struggle among the two bishops, which lasted about five years.Only with the accession of Jan Sobieski to the Polish throne, a personal friend of Yosyf, the latter managed to defeat his opponent.In 1675, as Bishop of Lviv, he was also appointed administrator to the Diocese of Kyiv.