In the last days of World War II, the Soviet Union declared war on Japan, as Stalin secretly agreed at Tehran and Yalta. The Soviet declaration of war was a major factor for the surrender of Japan on August 15. Although all other Allies, including the United States, ceased all hostilities upon the surrender, Stalin ordered his troops to continue fighting to capture more Japanese territory and put the Soviets in a stronger bargaining position to occupy Japan.