After talking to Djer go to Paser's house. Try curing him with the figurine of Paser, only to learn that Tuya has deceived you. In order to escape, approach the flame (next to Paser's head) and pour the soporific incense onto it. This is a timed sequence, so do it as quickly as possible. When you leave the house Maya has a vision of what will happen if the obelisk is not built.
 
Djer informs you that a friend is waiting for you in the storehouse courtyard and tells you how to get there. Go to the storehouse courtyard and talk to Khâemouaset's ethereal double to learn that Tuya intends desecrating the naos. He gives you a charm that invokes rain, which can be used to protect yourself if Tuya uses the fire of Set against you. In addition to this, he offers to teach you three other countermeasures to use against Tuya. Practice these countermeasures as they (together with the charm to invoke rain) are needed later in the game. This is dealt with later in the walkthrough.
 
The only way into the Temple is through the entrance opposite the storehouse courtyard. However, you have to correctly interpret the guide's dream before he allows you to pass.
 
 
IN THE GUARD'S DREAM:
 

I was sitting on the edge of a lake, when I saw three cats come out
of the water. The last one was big, very fat...

YOUR INTERPRETATION:
 

The beginning of your dream indicates that in three summers, the
harvest will be particularly good.

  
IN THE GUARD'S DREAM:
 

...The cats moved away. I got up and discovered that my backside
was naked…

YOUR INTERPRETATION:

You will lose your parents.

  
IN THE GUARD'S DREAM:
 

... A big crowd was surrounding me and jeered at me. I climbed to
the top of a high pole that was there...

YOUR INTERPRETATION:
 

You will have the support of the gods, and because of that, you will
rise above common folk.

 

 

IN THE GUARD'S DREAM:

... Then I saw myself drinking a bowl of wine…

YOUR INTERPRETATION:

You will live an honest life.

 

 

IN THE GUARD'S DREAM:
 

... As I was wiping my mouth, I saw that my face had changed. It
was now a leopard's face. That was the end of my dream!

YOUR INTERPRETATION:

You will gain authority over people

 
 
After correctly interpreting his dream, the guide gives you a magic coffer.
 
To avoid being seen by the three guards inside the Temple you need to wait for the right moment to move past them. Guard 1 must have walked off to the right, Guard 2 must be sleeping and Guard 3 has to be kneeling down and facing to the right. These positions are illustrated in the graphic below. Be patient, as it may take a while for all three to simultaneously be in these positions.
 

 
On your way to the naos you're confronted by Tuya and must defeat her in a spell casting duel. You should know how to defend four of her spells from what Khâemouaset told and taught you. He gave you a rain spell to counter Tuya's fire spell and taught you to defend against the Cobra of Hypnosis, Magic Net and Lotus (Transformation) spells. She will use two other spells (Dead Souls and Stone) during the duel that you need to find a counter for.
 

The six spells and their respective counters are as follows:

 

TUYA'S OFFENSIVE SPELLS

COUNTER SPELLS

Fire

I obey magic: burn, leave nothing
but ashes

Rain spell
Hypnosis

Stay, Maya, may the fire of the
goddess Nekhbet turn you to stone

Purification jar
Magic Net

Attendants of the cords, bind my enemy

Banner for
controlling wind
Transformation

I am the lotus nourished by the sun
and inhaled by the nose of Re

Widget-eye
of clairvoyance
Dead Souls

Come ye, come ye, O dead souls,
come unto this place that ye know not

Cobra of hypnosis
Stone

May the shadow of your ka be
surrounded and turned to stone

Magic net
 
When you defeat her Tuya turns into a snake and wriggles off toward the naos. Follow and confront her in another duel. You must 'attack' her four times to succeed in the hunt. 
 

In the solution below the letter 'R' signifies a right click to cast a spell and 'L' signifies a left click that moves Maya to the square. An attack on Tuya (in the form of a right click) is shown in a RED BOX.
 

RB3

LB3

RC4

RC2

RB2

RA2

RC4

LA2

RB1

RB3

RA3

RA1

LB1

RC2

RC2

LA2

RB2

RB3

LB3

RC2

RC2

RC3

RC3

LC3

RB2

RC2

LC2

RC1

RC1

 

 

Alternatively, there's a cheat to bypass the puzzle - press the following keys simultaneously:

 
After you finally defeat Tuya return to Paser's house. Use the mysterious knife (found in the embers at the Quarry) to cut open the figurine next to Paser.
 

Now sit back and enjoy the ending...