Sherlock Holmes was based on Dr. Joseph Bell, a surgeon at the Edinburgh Royal Infirmary where Arthur Conan Doyle studied. Doyle admired Bell's remarkable powers of deduction and observation, which became central to Holmes' character. Edgar Allan Poe's Dupin was an earlier influence but not the direct basis.