“Mestizo” and “mulatto” later became key parts of the elaborate classificatory scheme known as the casta system. Never formally codified on an empire-wide level but recognized in hundreds of separate local, ecclesiastical, and trade-guild rules, the casta system was an attempt to categorize the peoples of New Spain according to moral and spiritual worth, which was linked to descent.