In 1198 the problem of Berber piracy and slave-taking was so great that the Trinitarians, a religious order, were founded to collect ransoms and even to exchange themselves as ransom for those captured and pressed into slavery in North Africa.