It was written in 1913, when it was serialised in Blackwood's Magazine, and it was published in book form in 1916.