Jasna Góra Monastery was founded in 1382 by Pauline monks who came from Hungary at the invitation of Władysław, Duke of Opole. The monastery has been a pilgrimage destination for hundreds of years, and it contains an important icon of the Virgin Mary. The icon, depicting the Mother of God with the Christ Child, is known as the Black Madonna of Częstochowa or Our Lady of Częstochowa, which is widely venerated and credited with many miracles. Among these, it is credited with miraculously saving the Jasna Góra monastery during the Siege of Jasna Góra that took place at the time of The Deluge, a 17th-century Swedish invasion. The event stimulated the Polish resistance. The Poles could not immediately change the course of the war, but, after an alliance with the Crimean Khanate, they repulsed the Swedes. Shortly thereafter, in the cathedral of Lwów (Lviv), on April 1, 1656, Jan Kazimierz, the King of Poland, solemnly pronounced his vow to consecrate the country to the protection of the Mother of God and proclaimed Her the Patron and Queen of the lands in his kingdom.