The TARDIS materialises on Earth in the year 1911 inside an old priory owned by Egyptologist Marcus Scarman. Scarman has been possessed by Sutekh, last survivor of the god-like Osirans, who is held prisoner inside a py...展开ramid in Egypt by a signal transmitted from one on Mars. Sutekh desires his freedom and instructs Scarman to construct servicer robots - which look like Egyptian mummies - to build a missile with which to destroy the Martian pyramid. The Doctor foils this plan by blowing up the missile.
He then falls under Sutekh's control himself and is made to transport Scarman to Mars in the TARDIS. Scarman cuts off the signal but the Doctor, now freed of Sutekh's influence, realises that there will be a short delay before it ceases to have effect, owing to the time taken for it to reach Earth.
He rushes back and uses the time control from the TARDIS to move the end of the space-time tunnel that links the priory to the Egyptian pyramid into the far future. Sutekh, travelling down the tunnel, is unable to reach the end in his lifetime, and dies.