Captain Jack Harkness was the name adopted by a con man from the 51st century who became an associate and occasional companion of the Doctor. He was reluctantly made immortal and stranded on Earth from the mid-19th to the early 21st century. During much of that time, he worked for Torchwood.