In his preface, the anonymous author of Courtesans and Opium describes his book as an act of penance for thirty years spent patronizing the brothels of Yangzhou. Written in the 1840s, his story is filled with vice and dark consequence, portraying the hazards of the city's seedy underbelly and warning others against the example of the Fool.