He was the 14th Prime Minister of Czechoslovakia from July 1946 until June 1948, the first Communist to hold the post. In June 1948, he was elected as Czechoslovakia's first Communist president, four months after the 1948 coup d'état in which his party seized power with the backing of the Soviet Union. He held the post until his death.