The German–Soviet Treaty of Friendship, Cooperation and Demarcation (also known as the German–Soviet Boundary and Friendship Treaty) was a treaty signed by Nazi Germany and the Soviet Union on September 28, 1939 after their joint invasion and occupation of Poland.