The story was written during Chekhov's stay in Nice. It was first published on November 2, 1897, in issue No. 303 of Russkikh Vedomosti. Chekhov later included an edited version of the story in the ninth volume of his collection of works, published by Adolf Marx in 1899-1901.