The armies of the Russian Empire took control of Iranian Kurdistan in World War I, during the Persian Campaign. The February Revolution in Russia meant that the Russian provisional government no longer wanted to control Iranian Kurdistan. Nikolai Baratov, a Russian army general acting for the government, made an agreement with the local Iranian Kurds. They would attack the Ottoman army and help the Russians, and the Russian government would help set up an independent Kurdish state.