 Colonial law with native origins but with Spanish historical precedents was introduced, creating a balance between local jurisdiction (the Cabildos) and the Crown's, whereby upper administrative offices were closed to natives, even those of pure Spanish blood.Administration was based on a racial separation of the population among the Republics of Spaniards, Indians and Mestizos, autonomous and directly dependent on the king.The population of New Spain was divided into four main groups, or classes.