Answer
In 1956, Hungary was a member of the Warsaw Pact, a military alliance of communist states that was established in 1955. However, in October 1956, the Hungarian Revolution broke out, and the new government under Imre Nagy unilaterally withdrew Hungary from the Warsaw Pact. This move was met with hostility from the Soviet Union, which invaded Hungary in November 1956 and restored the communist government.