The roots of jiang hu wu xia go back at least as far as the 12th-century novel [The Water Margin]? (水滸傳), in which a band of noble outlaws retreat to a swampy hideout and mount wrong-righting sorties against corrupt officials.
In modern days, the term jiang hu is still frequently used to refer to the society among gangsters.