Fearful for the fate of his city, the king prayed to Our Lady to assist his small army. The result, according to legend, was that a darkness overshadowed enemy troops, leading them to attack one another.
In the 14th century the image was transferred to Jasna Gora in Poland as an answer to a request made in a dream of Prince Ladislaus of Opola. The history of the image is better documented while in his care.
In 1382 Tartars invaded the Prince's fortress at Belz, and during the attack one of the Tartar arrows struck the painting and lodged in the neck of the Madonna. The prince, fearful that the image would fall into the enemy's hands, fled during the night and stopped in the town of Czestochowa.
The painting was placed inside a small church, and the prince later had a Pauline monastery and church built at the location to ensure the painting's safety.
However, in 1430 the Hussites overran the monastery, attempting to take the image. In the process one of the looters took the painting and put it into a wagon and tried to drive away. But when the horses refused to move, he struck the painting twice with his sword. As he raised his hand to strike it again, he suddenly fell over writhing in pain and died.
Despite previous attempts to repair the scars from the arrow and the blows from the sword, restorers had trouble in covering them up since the painting was done with tempera infused with diluted wax. The marks remain visible to this day.
Later, in 1655 when Poland was almost entirely overrun by King Charles X of Sweden, only the area surrounding the monastery remained unconquered. Miraculously, the monks who lived there were somehow able to defend the portrait throughout a 40 day siege, and Poland was eventually able to drive out the invaders.
After the miraculous event, King John II Casimir Vasa crowned the image of Our Lady of Czestochowa as Queen of Poland, placing the entire country under her care and protection.
More recent stories surrounding the image involve the Russian invasion of Poland in 1920, holding that when the Russian army was gathering on the banks of the Vistula River and threatening Warsaw, they saw an image of Our Lady in the clouds over the city, prompting them to withdraw.
The image of Our Lady of Czestochowa gets its nickname "Black Madonna" from the soot residue which discolors the painting as a result of centuries of votive lights and candles burned in front of it.
Since the fall of communism in Poland, pilgrimages to the image have significantly increased.
(Story continues below)
Subscribe to our daily newsletter
As many as 2.5 million pilgrims expected to gather in Krakow for this year's WYD event. While not all of them will join Pope Francis in Czestochowa, his visit will surely attract more pilgrims to the spot.
In his comments to CNA, Cardinal Dziwisz said that given the history of WYD and the Czestochowa image, this year's gathering is particularly significant for European countries, such as Ukraine, who are facing dramatic conflicts.
"We mustn't forget that the World Youth Day which took place in Czestochowa 25 years ago was the first with youth who came from the countries of the east. There were around 200,000, coming from Ukraine, from Russia and Belarus," he noted.
"For the first time, that event was truly global. We must help youth from the Eastern countries to come…above all from Belarus and Ukraine," he said, adding that while the Ukraine conflict makes travel in the region difficult, "we don't exclude anyone."