The first President, Friedrich Ebert, who had died on 28 February 1925, had been elected indirectly, by the National Assembly, but the Weimar Constitution required that his successor be elected by the "whole German people". Paul von Hindenburg was elected as the second president of Germany in the second round of voting.