uring the reign of Tutankhamun the army had been lead by Horemheb. Upon Tutankhamun's death the powerful Ay had become pharaoh and he kept Horemheb on as a military leader. When Ay died, after a brief reign, there were no heirs to the throne so Horemheb was made king.
Restoring order was his main objective. Under him all trace of the Akhenaten heresy was erased from Egyptian history. The city of Akhetaten at Tel el Amarna was destroyed and the royal cartouches of Akhenaten and Tutankhamun were erased from the temple records.
Once this was accomplished Horemheb moved to Memphis and began work on internal affairs. He returned properties of the temples to the rightful priests and lands to the rightful owners. He had restoration projects and building additions in Karnak. He erected shrines and a temple to Ptah. He built tombs at Thebes, in the Valley of the Kings, and Memphis. He was noted for admonishing high ranking officials against cheating the poor and misappropriating the use of slaves and properties. He promised the death penalty for such offences. Horemheb had no heir so he appointed a military leader to succeed him. That leader was