 When it became clear that failing health was affecting his  performance and relationship with the cast and crew,  William Hartnell (qv), the first actor to play the Doctor, was  asked to leave the show. Rather than cancel the successful series,  the writers came up with the Doctors ability to regenerate his body  when he is near death, which allows for the smooth transition from  one actor to another playing the role.