<Tr> <Td_colspan="2"> Doctor Who episodes (1963--1989) Doctor Who episodes (2005--present) </Td> </Tr> <P> "The Girl in the Fireplace" is the fourth episode of the second series of the British science fiction television series Doctor Who . It was first broadcast on BBC One on 6 May 2006 . Written by Steven Moffat and directed by Euros Lyn, the episode is inspired by Audrey Niffenegger's novel The Time - Traveler's Wife . </P> <P> The episode is set in France throughout the 18th century . In the episode, repair androids from the 51st century create time windows to stalk Madame de Pompadour (Sophia Myles) throughout her life . They seek to remove her brain as a replacement part for their spaceship at a point in her life they believe her to be compatible with the ship . </P> <P> The programme's executive producer Russell T Davies, who conceived the idea while researching for Casanova, described the episode as a love story for the show's protagonist the Tenth Doctor (David Tennant). The episode was filmed in England and Wales in October 2005 . It was well received by most critics, was nominated for a Nebula Award and won the 2007 Hugo Award for Best Dramatic Presentation, Short Form . </P>

Who played madame de pompadour in doctor who