'Heredity' was published in a poetry collection, Moments of Vision, in the year 1917. This collection, in a sense, was Hardy's response to Darwin's theory of evolution which was the talk of the town at the time. Darwin's new theory then had Hardy questioning a lot about humans, including their belief in God.