The Soviet Union sided with the Bangladeshis, and supported the Indian Army and Mukti Bahini during the war. The Soviets thought that the independence of Bangladesh would weaken the position of its rivals—the United States and China. The USSR gave assurances to India that if a confrontation with the United States or China developed, it would take counter-measures. This assurance was enshrined in the Indo-Soviet friendship treaty signed in August 1971.