Re-established after the Livonian War as the Diocese of Wenden by king Stephen Báthory in 1582. After 1621 the diocesan see was relocated to Dünaburg (Daugavpils) in Inflanty Voivodeship (contemporary Latgalia) of the Polish–Lithuanian Commonwealth. It was formed after Vidzeme and present-day Estonia (the western portion of the predecessor Diocese of Wenden) were conquered by Swedish king Gustav II Adolf. The diocese was suppressed in 1798 after the third partition of the Polish–Lithuanian Commonwealth.