After receiving his M.D. in 1869 James became an instructor in comparative physiology at Harvard and then taught physiology and psychology at Johns Hopkins University in Baltimore. He returned to Harvard in 1880 to join its illustrious philosophy department that at the time included Josiah Royce and graduate student George Santayana. Although James directed Santayana's doctoral thesis the relationship was not a happy one; James called the dissertation "the perfection of rottenness."
In 1890 James published his famous Principles of Psychology, the first textbook on psychology. A huge and instant success, it provided a philosophical foundation for the newly developing science of psychology; subsequently, James helped found the American Psychological Association and served as its first president.
