The countries share a 539 km long common border.[1]
History
The bulk of modern Slovakia was part of Poland from 1003 to c. 1031. The northern outskirts of modern Slovakia remained part of Poland before gradually passing to Hungary in the following centuries, however, in 1412 Poland regained portions of the region of Spisz with 16 towns by the Treaty of Lubowla, and retained the territory until Austrian occupation in 1769, and the First Partition of Poland in 1772. From 1918 to 1992 Poland's relations with Slovakia was conducted throughout the relations between Poland and Czechoslovakia, except for the period of 1939–1945.
the European Union and NATO
Both countries became members of the European Union in 2004. Poland joined NATO in 1999. Slovakia joined NATO in 2004.