Despite their bitter rivalry, fascism and communism found common ground in their opposition to capitalism. Germany and the Soviet Union initially struck an economic agreement. They then agreed, in a secret treaty, to split Poland into German and Soviet zones of influence. On August 23, 1939, the agreement was signed. This surprised the allies, who had built their deals with Hitler partly on the notion that the fear of war with Russia would keep Hitler in check.