Slave labor forced Spanish colonies to construct elaborate racial codes.

Evidence

Their consequences, though, were not simply economic. Slave labor required the elaboration of systems of control and discipline. Moreover, the intercourse of the several races extant in Spain’s new possessions precipitated the formation of rather complex racial codes and codifications. — Cedric J. Robinson, Black Marxism_ The Making of the Black…, 642