The term was then used to name the prison for hostages in Istanbul, which was near the bath-house, and thereafter all the slave prisons in the Ottoman Empire and the Barbary regencies. In the Barbary prisons, the hostages of the pirates spent their nights there, leaving during the day to work as laborers, galley slaves, or domestic servants. Bagne became the French word for the prisons of the galley slaves in the French Navy. The last one in European France (Toulon) was closed in 1873. The communication between master and slave and between slaves of different origins was made in Lingua Franca (also known as Sabir), a Mediterranean pidgin with Romance and Arabic lexicon. The French penal colony on the Îles_du_Salut was also called Bagno, and features in the famous bestseller Papillon.
In England, it was originally used to name coffee houses which offered Turkish baths, but by 1740 it signified a place where rooms could be hired with no questions asked, later a house of prostitution.
Los tratos de Argel ("The trades of Algiers", 1580), Los baños de Argel ("The Bagnios of Algiers", 1615), El gallardo español ("The Gallard Spaniard", 1615) and La gran sultana ("The great sultaness", 1615) were four comedies by Miguel de Cervantes about the life of the caitiffs. Cervantes himself had been imprisoned in Algiers (1575–1580). His Don Quixote also features a subplot with the story of a caitiff (chapters 39-41 of the first part). In The Day of the Locust, (Nathanael West, 1939), Claude Estee's wife, Alice, says "Nothing like a good bagnio to set a fellow up." A bagnio, in reference to a brothel or boarding house, is also mentioned in The Private Memoirs and Confessions of a Justified Sinner by James Hogg as the location of a quarrel between two young Edinburgh nobleman that precedes one of them being murdered and the other arrested for the crime.
- "Marriage A-la-Mode: 5, The Bagnio". The National Gallery. 2006. http://www.nationalgalleryimages.co.uk/imagedetails.aspx?q=HOGARTH%2c+William&mode=artist&start=15&num=12&ng=NG117&title=Marriage+A-la-Mode%3a+4%2c+The+Toilette&artist=William+HOGARTH&q2=NG117. Retrieved 4 June 2007.
- article from Saint Cloud (Minnesota) Journal, Thursday June 24, 1869.