Upon his appointment as Bishop of Wrocław in 1198, Jarosław of Opole, elder son of the Silesian duke Bolesław I the Tall, received the territories around the town of Nysa  from his father. After Jarosław's death in 1201, his half-brother Duke Henry I the Bearded of Silesia decided to leave Nysa, as well as the castellany of Otmuchów, under the control of the Diocese of Wrocław, while the rest of the late Jarosław's Upper Silesian lands were annexed by his uncle Mieszko IV Tanglefoot in the following year. In 1290 Henry IV Probus, duke of Lower Silesia at Wrocław, gave the bishops privileges of autonomy on their lands in Nysa, creating the legal basis for the Duchy of Nysa. Henry of Wierzbna, Bishop of Wrocław from 1302 to 1319, was the first to actually use the title of a Duke of Nysa. The duchy in its original form only lasted until 1335, when Silesia passed to the Kingdom of Bohemia by the Treaty of Trentschin. In 1342 Bishop Przecław of Pogorzeli swore the oath of fealty to King John the Blind and afterwards played a vital role in the negotiations for the 1348 Treaty of Namslau between John's successor Charles IV and King Casimir III the Great of Poland. Pogorzeli also significantly enlarged his territory by acquisition of Grodków  from Duke Bolesław III the Generous of Brzeg in 1344. For the next two hundred years, the Polish, Czech and German inhabitants of Nysa-Grodków lived in relative harmony, even during the beginnings of the Reformation as the control of the region switched between Protestant and Catholic rulers. This ended with the Thirty Years' War.. How many years was Henry of Wierzbna, 1302-1319, Bishop of Wroclaw?