The harem conspiracy was a plot to murder the Egyptian pharaoh Ramesses III. The principal figure behind the plot was one of the pharaoh's secondary wives, Tiye, who hoped to put her son Pentawere on the throne instead of the heir Ramesses IV. The plan was organized by the court official Pebekkamen. The plot was apparently successful in causing the death of the pharaoh, but failed in its main objective of establishing Pentawere on the throne. In the aftermath, the leading conspirators were convicted and executed.
Ramesses III was born during the Twentieth Dynasty to his father Pharaoh Setnakhte and mother Queen Tiy-merenese. His father Setnakhte came to the throne by rescuing Egypt from the hands of foreign powers. After Ramesses II or Ramesses The Great outlived twelve of his sons, Egypt was put in the hands of others. Setnakhte led Egypt into the Twentieth Dynasty. It is said that Ramesses III "entered life destined for the kingship and remained at the pinnacle of society and power throughout". Ramesses III ruled Egypt for 32 years before his life was cut short. He had recently relocated to Thebes to celebrate the Heb-Sed, the rejuvenation festival that occurs after a king rules for thirty years and it continues to take place every three years thereafter. It was in Thebes where this great conspiracy was performed.
In early April 1155 BC, Ramesses III was enjoying an evening in the royal harem when an attempt on his life was made. One of the king's wives, Queen Tiye, wished for her son, Pentawere, to take the throne over Ramesses IV; to effect this she had to remove Ramesses III as well as Ramesses IV. Tiye enlisted a group of officials throughout the administration as well as servants to help deliver messages beyond the harem. Tiye was also able to convince many of these officials to help act out the two-fold conspiracy. One of the pantry chiefs, Pebekkamen, was given the responsibility of becoming Tiye's ally as well as moving much of the information around. Pebekkamen received help from a butler named Mastesuria, the cattle overseer Panhayboni, and two administrators Panouk and Pentua. Since the harem had very restricted access Panhayboni sought out the overseer of the King's treasury, Pairy, to gain access to the harem.