With the 1335 Treaty of Trentschin (Trenčín) and the 1348 Treaty of Namysłów, most of the Silesian duchies were ruled by the Silesian Piast dukes under the feudal overlordship of the Bohemian kings, and thus became part of the Crown of Bohemia within the Holy Roman Empire. Many duchies remained Polish-ruled under the houses of Piast, Jagiellon and Sobieski, some up to the 17th and 18th century. In 1469, Lower Silesia passed to Hungary, and in 1490 it fell back to Bohemia, then ruled by the Jagiellonian dynasty. In 1476, the Crossen district became part of the Margraviate of Brandenburg, when the widow of the Piast ruler, Barbara von Brandenburg, daughter of Elector Albert Achilles, inherited Crossen. It remained an important center of Polish culture. In 1475 Głogów-born Polish printer founded the ("Holy Cross Printing House") in Wrocław, which published the "", the first incunable in Lower Silesia, which also contains the first ever text printed in the Polish language.