In 1898, at age 22, Hartley moved to New York City to study painting at the New York School of Art under William Merritt Chase, and then attended the National Academy of Design. Hartley was a great admirer of Albert Pinkham Ryder and visited his studio in Greenwich Village as often as possible. His friendship with Ryder, in addition to the writings of Walt Whitman and American transcendentalists Henry David Thoreau and Ralph Waldo Emerson, inspired Hartley to view art as a spiritual quest.