"The Name of the Doctor" is the thirteenth and final episode of the seventh series of the British science fiction television series Doctor Who. It was first broadcast on BBC One on 18 May 2013. It was written by Steven Moffat and directed by Saul Metzstein. The episode was watched by 7.45 million viewers in the UK and received positive reviews from critics.