The military alliance between the United Kingdom and Poland was formalised by the Anglo-Polish Agreement on 31 March 1939, with subsequent addenda of 1940 and 1944, for mutual assistance in case of a military invasion from Nazi Germany, as specified in a secret protocol.
Read more on Wikipedia