Dostoyevsky was born and raised in Moscow by Russian Orthodox parents. His father, a military surgeon and an alcoholic of harsh, despotic temperament, was brutally slain (1839) by his own serfs. This event haunted Dostoyevsky all his life and perhaps accounts in part for the preoccupation with murder and guilt in his writings. Dostoyevsky attended military engineering school in St. Petersburg and upon graduation entered government service as a draftsman. He soon abandoned this career for writing.
Dostoyevsky's first published work, Poor Folk (1846), which brought him immediate critical and public recognition, reveals his characteristic compassion for the downtrodden. His second novel, The Double (1846), less favorably received, shows the profound insight into human character that dominates his later works.
At about this time Dostoyevsky became involved with a group of radical utopians. The discovery of their illegal printing press brought about their arrest and condemnation. The prisoners were reprieved but were forced to take part in a pre-execution ceremony before the reprieve was read to them. Dostoyevsky was sentenced to four years at hard labor in a Siberian penal colony. During this harrowing period he suffered great physical and mental pain, including repeated attacks of epilepsy. The prison experience worked a profound change of heart in him. He abandoned his belief in the liberal, atheistic ideologies of Western Europe and turned wholeheartedly to religion and to the belief that Orthodox Russia was destined to be the spiritual leader of the world.
After several years of obligatory military service in Siberia, he was allowed to return to St. Petersburg. With him was the widow he had married in Siberia and her son. Dostoyevsky joined his beloved brother Mikhail in editing the magazine Time, which serialized The Insulted and The Injured (1861–62) and the record of his experience in the penal colony, The House of the Dead (1862). He made several trips to Western Europe. One result was Winter Notes on Summer Impressions (1863), reflecting his severely anti-Western attitudes.
Financial troubles, combined with a turbulent love affair and a passion for roulette, led to a nightmarish period in Germany, partly described in the short novel The Gambler (1866). In 1864 his unhappy marriage ended with the death of his wife. The same year his financial problems increased when his brother died and Dostoyevsky assumed responsibility for the remaining family. In 1867 he married his young secretary, who gave him profound affection and understanding and greatly enriched his later years.