Fyodor Dostoevsky began writing Crime and Punishment after his gambling and growing debts pushed him into financial insecurity.