During the early years of al-Bakr's rule, the Soviet Union became a strategic ally. However, with the increase in oil revenues relations between Iraq and the Soviet Union weakened. The Iraqi regime was given more freedom of choice, and lost its dependence on Soviet investments. The Soviet Union, during this period, retained its role as Iraq's largest arms supplier. With Iraq's foreign-policy priorities changing, repression against the ICP was reintroduced. The Soviet Union tried to act as a mediator between the two parties, but Soviet involvement was considered by the Ba'athist government as Soviet interference in Iraq's internal affairs. During the Iran–Iraq War Leonid Brezhnev, General Secretary of the Central Committee of the Communist Party of the Soviet Union, called the war "absolutely senseless" because the conflict only benefited imperialism. However, Soviet-Iranian relations deteriorated during the war due to Iran's support for anti-communist forces in the Afghan Democratic Republic. During Yuri Andropov's rule of the Soviet Union, there were rumors that the USSR was increasing its shipments of modern arms to Iraq during its war with Iran. This proved to be wrong, and Saddam openly complained that the Treaty of Friendship signed with the Soviet Union "has not worked." During the rule of Konstantin Chernenko, the Soviet Union's relations with Iran further deteriorated as the Soviet leadership began to criticise Islamic fundamentalism. In 1986, under Mikhail Gorbachev, the Soviet Union officially changed its position from neutral to that of "active containment" of Iran. This policy lasted until the war with Iran ended in 1988. During the Iraqi invasion of Kuwait and the following Gulf War, the Soviet Union was officially neutral. Shortly after, on 26 December 1991, the Soviet Union was officially dissolved.