Pharaoh Rama Tut Tut was one of Genie's previous masters and quite possibly his most greediest.
Rama Tut Tut was obsessed with treasure, so much so that all three of his wishes were for the sake of protecting his treasures. His first wish was for Genie to put a spell on the Sphinx to come to life should anyone try to steal his treasure, his second wish was for Genie to build for him a glorious treasure-filled tomb filled with traps beneath the Sphinx which it would guard till the end of time, and his final wish was for Genie to put a powerful curse on the Pharaoh's Ankh, his most prized possession, which if stolen would cause the thief and anyone who touched it to rapidly age with each rising of the sun until the Ankh was returned to its rightful owner. With his wishes completed, Genie returned to his lamp to await his next master.
Thousands of years later, the Ankh was stolen by Faya, the greatest thief in Egypt who initially ignored the warnings of the curse and journeyed to Agrabah to sale her stolen wears, but she soon realized that the curse was real as she began to age dramatically after several days. She then tried to return to Egypt only to have Abu steal the Ankh from her, cursing them both, and later Aladdin as well. Aladdin then promised to return the Ankh before they perished. With Abu and the Magic Carpet's great speed Aladdin quickly arrived at the Sphinx in Egypt, but upon trying to enter it, it came to life and forced Aladdin and Abu to answer his riddles in exchange for entry, and should they fail they would perish. Luckily both were able to solve the Sphinx's riddles and were able to get passed the tomb's many traps thanks to Carpet. Once they reached the tomb itself, they were shocked to discover Rama Tut Tut had now become an undead mummy, forever a slave to his own treasure till the end of time, a fate which Aladdin considered to be a greater curse. Aladdin then put the Ankh back where it belonged, freeing himself, Abu and Faya from the curse once and for all.