The Gambler was made public in 1867 short time after Crime and Punishment. In the summer 1865 Dostoyevsky had promised to his publisher Stellovsky to create a novel until 1. November. Otherwise the publisher would get the publishing rights for other works of Dostoyevsky without having to pay. Dostoyevsky accepted this. So Dostoyevsky dictated the novel in only 26 days to his typist and later wife Anna. Stellovsky left St. Petersburg on 31. October to make the delivery impossible. But Anna had the idea to deliver the novel to a notary (a kind of a lawyer) and like that they were able to deliver the novel until the promised date.