PYRAMIDS OF MARS (1975)
In this adventure starring the Fourth Doctor (Tom Baker), 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 under a pyramid 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 stops, rushes back and uses the time control from the TARDIS to move the end of Sutekh's space-time tunnel into the far future. Sutekh, travelling down the tunnel, is unable to reach the end in his lifetime, and dies.