On 11 July 1346, in consequence of an alliance between his father and Pope Clement VI, relentless enemy of the emperor Louis IV, Charles was chosen as Roman king in opposition to Louis by some of the prince-electors at Rhens.
Civil war in Germany was prevented, however, when Louis IV died on 11 October 1347, after suffering a stroke during a bear hunt.