John Cleland wrote Fanny Hill, also known as Memoirs of a Woman of Pleasure, in two installments while serving time in prison for debt. In 1749, he was arrested for obscenity, yet denied responsibility for the novel. The book was not officially published again for 100 years. However, it continued to sell well and was published in pirate editions.