 The prisoners were destined for a variety of fates—some lived out their days chained to the oars as galley slaves, while others would spend long years in the scented seclusion of the harem or within the walls of the sultan's palace.Only two of them ever saw Ireland again.The Congress of Vienna (1814–15), which ended the Napoleonic Wars, led to increased European consensus on the need to end Barbary raiding.