Spanish colonies had a Colonial Caste System that was designed mainly to maintain power, the caste system was based on race and was very complex. It was imposed by the Spanish government. The three main races were the Peninsulares, the Native Indians and the African Negros, there were also other castes of mixed races.
The Gauchapines were the Peninsulares that were born in Europe, they were considered socially superior, the others were socially and legally inferior to them. The castes were based in a race which meant that no one could move from one caste to another.
This strict structure contributed to the social unrest and the calls for independence since people wanted the same rights and were tired of people naming themselves better than others.