Miguel de Cervantes, the Spanish author, was captive for five years as a slave in the "bagnio" of Algiers, and reflected his experience in some of his fictional (but not directly autobiographical) writings, including the Captive's tale in "Don Quixote", his two plays set in Algiers, "El Trato de Argel" (The Treaty of Algiers) and "Los Baños de Argel" (The Baths of Algiers), and episodes in a number of other works.