These slaves were taken from piracy on passing ships as well as coastal raids on settlements as far as the Malacca Strait, Java, the southern coast of China and the islands beyond the Makassar Strait. Most of the slaves were Tagalogs, Visayans, and "Malays" (including Bugis, Mandarese, Iban, and Makassar). There were also occasional European and Chinese captives who were usually ransomed off through Tausug intermediaries of the Sulu Sultanate. Slaves were the primary indicators of wealth and status, and they were the source of labor for the farms, fisheries, and workshops of the sultanates. While personal slaves were rarely sold, they trafficked extensively in slaves purchased from the Iranun and Banguingui slave markets. By the 1850s, slaves constituted 50% or more of the population of the Sulu archipelago.