Päts was forced to resign on either 21 July or 22 July, depending on the source. In accordance with Section 46 of the Estonian constitution, Johannes Vares, who had been serving as prime minister of a Communist-dominated puppet government appointed in June, then took over the president's powers under the title of "Prime Minister in duties of the President" and presided over the final stages of the Soviet takeover until Estonia was formally incorporated into the Soviet Union on 9 August.