 Until the mid-17th century, during the early Portuguese mandate of Macau, some 5,000 slaves lived in the territory, in addition to 2,000 Portuguese and an ever-growing number of Chinese, which in 1664 reached 20,000.This number decreased in the following decades to between 1000 and 2000.Most of the slaves were of African origin.