Edinburgh Edinburgh was the capital city of Scotland , ( PROSE : " Moon Blink " ) located on the east coast of the country . To the west of Edinburgh was Glasgow . ( TV : " The Lie of the Land " ) The East Coast Line had a station at Edinburgh . ( PROSE : " Enter Wildthyme " ) Notable locations in Edinburgh included Dolerite Base , a secret facility used extensively by HAVOC ; ( PROSE : " Moon Blink " et al ) the Hecht Museum of Unexplained and Occult Material , a large underground collection of unusual artefacts ; ( COMIC : " Project : Longinus " ) and the University of Edinburgh , which was attended by Heather McCrimmon . ( COMIC : " The Chromosome Connection " et al ) History . 16th century . The Fourth Doctor , Sarah Jane Smith , and Iris Wildthyme once met Mary , Queen of Scots in Edinburgh . ( PROSE : " Verdigris " ) 17th century . In 1645 , the Twelfth Doctor , Bill Potts , and Nardole visited Edinburgh . ( PROSE : " Plague City " ) 18th century . In 1759 , the Tenth Doctor and Martha Jones visited Edinburgh , met Alexander Monro , and prevented the Kith from killing everyone in the city . ( PROSE : " The Many Hands " ) 19th century . In 1815 , the Tenth Doctor and Heather McCrimmon visited Edinburgh and saved Great - Great - Great Grandmother McCrimmon from the Mozhtratta . ( COMIC : " The Chromosome Connection " ) In 1816 , Dr John Polidori , Lord Byron ' s physician , was considered one of the best doctor s in Edinburgh . ( AUDIO : " Mary ' s Story " ) In December 1828 , the Sixth Doctor and Evelyn Smythe visited Edinburgh an encountered the famous bodysnatchers William Burke and Billy Hare . ( AUDIO : " Medical Purposes " ) On 6 October 1866 , ( COMIC : " The Pictures of Josephine Day " ) the Eighth Doctor and Josie Day came to Edinburgh ' s Theatre Royal to see Philippot ' s Magesterial Delights . They realised that the performance was being used by beings from a a reflection of Edinburgh in a pocket dimension to get into the real Edinburgh . The Doctor and Josie journeyed into the mirror Edinburgh , rescued all the prisoners kept there by the mirror people , and then severed the link between the mirror dimension and the real Edinburgh . ( COMIC : " The Silvering " ) In 1882 , Hary Hughes lived in Edinburgh . ( PROSE : " Erasing Sherlock " ) 20th century . For five months in 1929 , Dr " Helena Bennet " ran a clinic in a poor area of Edinburgh . ( PROSE : " The Three Faces of Helena " ) During World War II , LONGBOW was based in Dolerite Base , a secret facility beneath Edinburgh Castle . ( PROSE : " Moon Blink " ) By the mid - 20th century , Prince Philip was the Duke of Edinburgh . ( PROSE : " Dance of the Voodoo Valkyries " ) From 1969 ( PROSE : " Moon Blink " ) until at least 1970 , ( PROSE : " Night of the Intelligence " ) the Home - Army Fifth Operational Corps was based in Dolerite Base . ( PROSE : " The Grandfather Infestation " et al ) In 1997 , the Tenth Doctor and Martha Jones came to Edinburgh to see the Scott Monument . ( PROSE : " The Many Hands " ) 21st century . In the early 21st century , Iris Wildthyme and Panda stayed in Edinburgh for two months and worked with the local police to solve a series of murder s by Tiny Tomsk . ( PROSE : " The Shape of Things " ) In the early 2000s , Nimrod came to Edinburgh to acquire the Lance of Longinus from the Hecht Museum of Unexplained and Occult Material . ( COMIC : " Project : Longinus " ) The Tenth Doctor ' s companion , Heather McCrimmon , was from Edinburgh and studied at the city ' s university in 2009 . ( COMIC : " The Chromosome Connection " ) The Tenth Doctor later visited Edinburgh in 2010 , where he had his final battle with the Mozhtratta . ( COMIC : " Dead - line " ) In early 2011 , Barbra went on a MIAOW mission to do a bit of undercover surveillance at the Edinburgh East Coast Line train station , looking for a supernatural creature . ( PROSE : " Enter Wildthyme " ) In 2015 , Sasha , an old classmate of Tom Niven , was receiving an education in Edinburgh . ( PROSE : " The Beast of Stalingrad " ) Other realities . In an alternative timeline , the Fifth Doctor , Peri Brown and Erimem visited the city on 31 December 1999 . ( PROSE : " Graham Dilley Saves the World " )