Leo Tolstoy then spent much of his time in Moscow, Tula and Saint Petersburg, leading a lax and leisurely lifestyle. He began writing during this period, including his first novel "Childhood", a fictitious account of his own youth, which was published in 1852. In 1851, after running up heavy gambling debts, he went with his older brother to the Caucasus and joined the army. Tolstoy served as a young artillery officer during the Crimean War and was in Sevastopol during the 11-month-long siege of Sevastopol in 1854–55, including the Battle of the Chernaya. During the war he was recognised for his bravery
War and Peace married and settled down at his country estate. The first half of the book was written under the name "1805". During the writing of the second half, he read widely and acknowledged Schopenhauer as one of his main inspirations. However, Tolstoy developed his own views of history and the role of the individual within it. The first draft of the novel was completed in 1863. In 1865, the periodical (The Russian Messenger) published the first part of this draft under the title "1805" and published more the following year. Tolstoy was dissatisfied with this version, although he allowed several parts