Czechoslovakia came under communist influence when communist groups led resistance against German occupation during World War II. In 1945, the country was liberated by Soviet forces, which took an active role in Czechoslovakia's postwar politics.