The Communist Party of Iran was founded in June 1920 in Bandar-e Anzali, in the province of Gilan, as a result of the first congress of Iranian social democrats. Heidar Amou Oghly, who was one of the leaders of the Constitutional Revolution of Iran, became the secretary-general of the new party. At the same time, Mirza Koochak Khan Jangali, another major leader of the Constitutional Revolution and also leader of the revolutionary Jangali (Foresters Movement), established the Soviet Republic of Gilan with the assistance of the Red Army of the Soviet Union.