The Polish National Anthem on a 1969 Scout Post Miniature Sheet

The source of the melody is unclear; it is usually ascribed to Michal Kleofas Oginski, but this has not been determined with certainty. It is most likely based on an anonymous folk song, due to the unusual mazurka tempo (which is often played at a faster rate than most anthems); mazurkas originated in Poland and have always been heavily associated with that nation.
Its familiar mazurka melody and its message - a call to join the fight for independence - inspired numerous 19th century patriotic songs and national hymns of the Slavonic nations under foreign rule (some of which would later become Yugoslavia, which could explain the similar melody of the former Yugoslav anthem.) The opening line of the lyrics was also borrowed by Ukraine (which, of course, speaks of the Ukraine not perishing rather than Poland.) In the early years after Poland's revival in 1918, during the debate about the choice of the national anthem, several candidates were considered. On February 28, 1927 the choice of "Dąbrowski's Mazurka" as the national anthem was officially announced.