The Soviets replaced the royal monarchy with Communism in 1947 before they withdrew from Bulgaria in 1949. For 40 years, under their leader Todor Zhivkov, Bulgaria was very close to the Soviet Union and followed their instructions. Bulgaria invaded Czechoslovakia to stop the Prague Spring in 1968.