Eh. Stabat Mater, Mater Nostra, Polonia.
Mary was considered the Queen of the Poland since long, long before that.
Proably, the best known time was when Polish knights sang
Bogurodzica (Literally, Mother of God) under Grunwald/Tannenberg. It worked out pretty well, and it's considered the first (Netherlands supposedly have the first national anthem at 1568, despite Grunwald taking place in 1410) anthem (carmen patrium - song of the fatherland) of Poland, sung at the crowning of Polish kings and before all battles.
There is a second anthem, possibly even earlier, this time in Latin,
Gaude Mater Polonia which means "Rejoice, Mother Poland" which also signifies that the concept of "motherland" (I honestly can't use both this term and fatherland without instantly thinking of WW2 Russians/Germans, fuck) is somehow interlocked with the concept of Queen Mother of Poland. Which is what it actually is, so please stop insulting both Christianity, Poland and the rest. Christ may be the King, but Queen Mary is... Poland, somehow. Hard to explain.
It was even earlier than that. The Christianization of Poland during 966 was special due to the fact it came to us through marriage and not by sword. It is a common theme in old songs and poetry, that, to quote, "Woman has brought us the cross", which is why Mary was always considered the Queen and protector of Poland. This is actually a quote from
Polish Origins Psalm, which I belive has not been translated anywhere. It's a great explanation of Polish romantism. Inflated past, shitty present and a hope for the greatest future.
It was further established when the "Black Madonna of Częstochowa" saved the sanctuary of Jasna Góra from Swedish deluge, supposedly by direct action, which is why she got crowned as Queen of Poland by Jan Kazimierz. The icon still is in the sanctuary, with crown and whatnot. One of few relics that have not been stolen by either Swedes, partitioners or even Nazis who were supposedly too scared to touch it. It's one of the three miraculous icons of Poland, the other one being in Ostra Brama sanctuary in Wilno, Lithuania and the third one, the "Our Lady of Sorrows, Queen of Poland" in Licheń basillica.
As I said, this is often mentioned in Polish poetry. The
Song of Bar Confederates says that Poles are Christs orderlies and servants of Mary, the "God's Corps". That we cannot die, that not even the "armies flying on dragons" will scare us and that we will do our duty. The Polish messianism is actually a very, very prominient theme in Polish culture, that Poland is the "Christ of the Nations". This had a very significant impact on Polish... world view. This is why Poles, at least before the meat mincer of post war, were ridiculously fucking stubborn. Poland is a funny thing, you see. We have been always in state of constant dying, but for this exact reason, we refuse to. This is why Poles charged like madmen at the machineguns. This is why, despite being crushed utterly under various foreing influences, to the point when speaking a single Polish word was punished by instant death sentence, we managed to retain our culture. This is why "Poland has been the source of trouble for past 500 years", per words of Stalin. This is why we had the Deluge. This is why we had partitions. This is why, for hundreds of years Poles spread across the world. This is why we had both World Wars that hit Poland (France proably had it worse in the first one, but still, almost all of Eastern Front took place on Polish soil and the greatest national tragedy of the time was the fact that Poles fought against Poles, as we were split amongst all sides of the war) insanely hard. This is why we got sold by the West. This is why we had Communism. This is why we still fucking stand.
Polish Messianism implies that Poland has always been a "Shield of the West" and that we had a "civilizing mission" at the east. After all, we had heavenly help, how could we not be the "choosen people"? It even got worse after almost two hundred years old prophercy-poem came true and we got a Slavic pope, even worse, a POLISH Slavic pope. Our whole history screams at us that on the third day after our death, we will rise up from the grave and save the world. That we will be the greatest...
Well, it's been a while. How exactly does our glorious Mother Poland count her days? Of course, we may not have really died yet but that brings the chilling realization that the worst is yet to come.
This of course, has bad sides. After all, we're the martyr nation. We are always good. The others are bad. With this national image, it's absolutely impossible that Polish people could do bad things to others... obviously.