After the defeat of the Central Powers during World War I the Allies agreed to reconstitute the country of Poland from the territory which had been partitioned by the German Empire, Austro-Hungarian Empire, and Russian Empire. The new armed forces of the Second Polish Republic inherited a mix of German, Russian and Austro-Hungarian weapons from its former occupiers. Poland also received French technical assistance and weapons to rebuild its armed forces after World War I. Large numbers of Russian weapons were also captured during the Polish-Soviet War when the Red Army was defeated after the Battle of Warsaw in 1920.