In 1921, the Treaty of Moscow was signed between the Soviet Union and Poland, ending the Polish-Soviet War. The Treaty of Moscow established diplomatic relations between the two countries and defined their borders.