Prison literature is a literary genre characterized by literature that is written while the author is confined in a location against his will, such as a prison, jail or house arrest. The literature can be about prison, informed by it, or simply coincidentally written while in prison. It could be a memoir, nonfiction, or fiction.
Some notable historical examples of prison literature include Boethius's Consolation of Philosophy (524 AD) which has been described as “by far the most interesting example of prison literature the world has ever seen.”Hugo Grotius wrote his Commentaries while in prison. Marco Polo found time and inspiration to write his travels to China only after his return and being imprisoned in Genoa.Miguel de Cervantes was held captive as a galley slave between 1575–80 and from this he drew inspiration for his novel Don Quixote (1605). Sir Walter Raleigh compiled his History of the World, Volume 1 in a prison chamber in the Tower of London, but he was only able to complete Volume 1 before he was executed. Raimondo Montecuccoli wrote his aphorisms on the art of war in a Stettin prison (ca 1639-1641).John Bunyan wrote The Pilgrim's Progress (1678) while in jail. Martin Luther translated the New Testament into German while held at Wartburg Castle. Marquis de Sade wrote prolifically during an 11-year period in the Bastille, churning out 11 novels, 16 novellas, 2 volumes of essays, a diary and 20 plays.