The publication of the novel began in the Russki Viesinik (Russian Messenger) for January 1865, and the final chapters did not appear till 1869. It attracted constant attention during the process of publication, and despite considerable hostile criticism, established the reputation of its author.

During its composition Tolstoi read all kinds of books, Pickwick Papers, Anthony Trollope, whom he greatly admired, and Schopenhauer, who for a time fascinated him. In 1869 he learned Greek, and was proud of being able to read the Anabasis in a few months. He interested himself in social problems, and fought hard with the authorities to save a man from capital punishment. To various schemes of education, and to the general amelioration of the condition of the peasants, he gave all the tremendous energy of his mind.

On the 19 March 1873, he began the composition of Anna Karenina, which was to give him his greatest fame outside of Russia. Several years were spent in its composition and publication. Despite the power of genius displayed in this masterpiece, he did not enjoy writing it, and seemed to be unaware of its splendid qualities. In 1875 he wrote, "For two months I have not soiled my fingers with ink, but now I return again to this tiresome and vulgar Anna Karenina, with the sole wish of getting it done as soon as possible, in order that I may have time for other work." It was published in the Russian Messenger, and the separate numbers drew the attention of critics everywhere, not merely in Russia, but all over Europe.

The printing began in 1874. All went well enough for two years, as we see by a letter of the Countess Tolstoi, in December 1876. "At last we are writing Anna Karenina comme il faut, that is, without interruptions. Leo, full of animation, writes an entire chapter every day, and I copy it off as fast as possible; even now, under this letter, there are the pages of the new chapter that he wrote yesterday. Katkov telegraphed day before yesterday to send some chapters for the December number." But, just before the completion of the work, Tolstoi and the editor, Katkov, had an irreconcilable quarrel. The war with Turkey was imminent. Tolstoi was naturally vehemently opposed to it, while Katkov did everything in his power to inflame public opinion in favour of the war party; and he felt that Vronsky's departure for the war, after the death of Anna, with Levin's comments thereupon, were written in an unpatriotic manner. Ridiculous as it now seems to give this great masterpiece a political twist, or to judge it from that point of view, it was for a time the sole question that agitated the critics. Katkov insisted that Tolstoi "soften" the objectionable passages. Tolstoi naturally refused, editor and author quarrelled, and Tolstoi was forced to publish the last portion of the work in a separate pamphlet. In the number of May 1877, Katkov printed a footnote to the instalment of the novel, which shows how little he understood its significance, although the majority of contemporary Russian critics understood the book no better than he.

"In our last number, at the foot of the novel Anna Karenina, we printed, 'Conclusion in the next issue.' But with the death of the heroine the real story ends. According to the plan of the author, there will be a short epilogue, in which the reader will learn that Vronsky, overwhelmed by the death of Anna, will depart for Servia as a volunteer; that all the other characters remain alive and well; that Levin lives on his estates and fumes against the Slavonic party and the volunteers. Perhaps the author will develop this chapter in a special edition of his novel."

Levin's conversation with the peasant, toward the close of Anna Karenina, indicates clearly the religious attitude of Tolstoi, and prepares us for the crisis that followed. From 1877 to 1879 he passed through a spiritual struggle, read the New Testament constantly, and became completely converted to the practical teachings of the Gospel. Then followed his well-known work, My Religion, the abandonment of his former way of life, and his attempts to live like a peasant, in daily manual labour. Since that time he wrote a vast number of religious, political, and social tracts, dealing with war, marriage, law-courts, imprisonment, etc. Many of the religious tracts belong to literature by the beauty and simple directness of their style. Two short stories and one long novel, all written with a didactic purpose, are of this period, and added to their author's reputation: The Death of Ivan Ilyich, The Kreuzer Sonata, and Resurrection.

One cannot but admire the courage of Tolstoi in attempting to live in accordance with his convictions, just as we admire Milton for his motives in abandoning poetry for politics. But our unspeakable regret at the loss to the world in both instances, when its greatest living author devotes himself to things done much better by men destitute of talent, makes us heartily sympathise with the attitude of the Countess, who hardly knew whether to laugh or to cry. In a letter to her husband, written in October 1884, and filled with terms of affectionate tenderness, she said: "Yesterday I received your letter, and it has made me very sad. I see that you have remained at Yasnaya not for intellectual work, which I place above everything, but to play 'Robinson.' You have let the cook go . . . and from morning to night you give yourself up to manual toil fit only for young men. . . . You will say, of course, that this manner of life conforms to your principles and that it does you good. That's another matter. I can only say, 'Rejoice and take your pleasure,' and at the same time I feel sad to think that such an intellectual force as yours should expend itself in cutting wood, heating the samovar, and sewing boots. That is all very well as a change of work, but not for an occupation. Well, enough of this subject. If I had not written this, it would have rankled in me, and now it has passed and I feel like laughing. I can calm myself only by this Russian proverb: 'Let the child amuse himself, no matter how, provided he doesn't cry."

In the last few weeks of his life, the differences of opinion between the aged couple became so acute that Tolstoi fled from his home, and refused to see the Countess again. This flight brought on a sudden illness, and the great writer died early in the morning of the 20 November 1910. He was buried under an oak tree at Yasnaya Polyana.

Although Count Tolstoi divided his life into four distinct periods, and although critics have often insisted on the great difference between his earlier and his later work, these differences fade away on a close scrutiny of the man's whole production, from Childhood to Resurrection.

"Souls alter not, and mine must still advance," said Browning. This is particularly true of Tolstoi. He progressed, but did not change; and he progressed along the path already clearly marked in his first books. The author of Sevastopol and The Cossacks was the same man mentally and spiritually who wrote Anna Karenina, Ivan Ilyich, The Kreuzer Sonata, and Resurrection. Indeed, few great authors have steered so straight a course as he. No such change took place in him as occurred with Björnson. The teaching of the later books is more evident, the didactic purpose is more obvious, but that is something that happens to almost all writers as they descend into the vale of years. The seed planted in the early novels simply came to a perfectly natural and logical fruition.