Hungary–Russia relations refer to bilateral foreign relations between the two countries, Hungary and Russia. During the Second World War, the Soviet army took over Hungary, and in 1948 Moscow took full control of the country. It became part of the Warsaw Pact, designed as a military alliance against NATO. The relations between both countries were damaged in 1956 due to the Soviet military intervention in the revolution occurring in Hungary. Hungary expelled its communist government in 1989, and diplomatic relations with Russia were restored after the breakup of the USSR in 1991.