Heqamaatre Setepenamun Ramesses IV was the third pharaoh of the Twentieth Dynasty of the New Kingdom of Ancient Egypt. He was the second son of Ramesses III and crown prince when his elder brother Amenherkhepshef died aged 15 in 1164 BC, when Ramesses was only 12 years old. His promotion to crown prince:
is suggested by his appearance in a scene of the festival of Min at the Ramesses III temple at Karnak, which may have been completed by Year 22 [of his father's reign].
As his father's chosen successor, the Prince employed three distinctive titles: "Hereditary Prince", "Royal scribe" and "Generalissimo"; the latter two of his titles are mentioned in a text at Amenhotep III's temple at Soleb and all three royal titles appear on a lintel now in Florence, Italy. As heir-apparent he took on increasing responsibilities; for instance, in Year 27 of his father's reign, he is depicted appointing a certain Amenemope to the important position of Third Prophet of Amun in the latter's TT 148 tomb. Amenemope's Theban tomb also accords prince Ramesses all three of his aforementioned sets of royal titles.