King of the Romans (Latin: Romanorum Rex; German: Römisch-deutscher König) was the title used by the German king following his election by the princes from the time of Emperor Henry II (1014–1024) onward. The title was predominantly a claim to become Holy Roman Emperor and was dependent upon coronation by the Pope.
The title originally referred to any elected king who had not yet been granted the Imperial Regalia and title of "Emperor" at the hands of the Pope. Later it came to be used solely for the heir apparent to the Imperial throne between his election (during the lifetime of a sitting Emperor) and his succession upon the death of the Emperor.
The territory of East Francia was not referred to as the Kingdom of Germany or Regnum Teutonicum (Latinised from Old High German diutisc) by contemporary sources until the 11th century. During this time, the king's claim to coronation was increasingly contested by the papacy culminating in the fierce Investiture Controversy. After the Salian heir apparent Henry IV, a six-year-old minor, had been elected to rule the Empire in 1056 he adopted Romanorum Rex as a title to emphasize his sacred entitlement to be crowned Emperor by the Pope. Pope Gregory VII insisted on using the derogatory term Teutonicorum Rex ("King of the Germans") in order to imply that Henry's authority was merely local and did not extend over the whole Empire. Henry continued to regularly use the title Romanorum Rex until he finally was crowned Emperor by Antipope Clement III in 1084. Henry's successors imitated this practice, and were also called Romanorum Rex before and Romanorum Imperator after their Roman coronations.