Pieck returned to Germany between the wars and was elected to the Reichstag. Then the Nazis came to power and Pieck fled again, this time to Moscow. After World War II, Pieck cofounded the German Communist Party, and ultimately served as president of East Germany from 1949 until his death in 1960.