How were the social classes in Spanish America a result of Spain trying to exercise control

How were the social classes in Spanish America a result of Spain trying to exercise control in the
colonies?