they were ruled by local chiefs during the period of the ming and qing dynasties