What were the reasons for the turning point in the struggle of Latin Americans against Spanish colonialism?

What were the reasons for the turning point in the struggle of Latin Americans against Spanish colonialism? How has the situation in Europe affected this?

Despite the appearance of success, the Spaniards were never able to restore their former positions in Latin America. There was no longer the former confidence in their actions, and the part of the local population, on which the Spaniards relied earlier, increasingly refused to support them. And only military force for the time being provided them with an advantage.
The Spaniards also faced other difficulties. So, the insufficient power of the fleet did not allow them to transport all the troops prepared for dispatch to the colonies. Latin American patriots received extensive support from the United States, who helped them with money, arms, volunteers, etc. An important role was played by the position of Great Britain, which opposed the intention of the powers of the Holy Alliance to send a military expedition to Latin America.

Remember: The process of learning a person lasts a lifetime. The value of the same knowledge for different people may be different, it is determined by their individual characteristics and needs. Therefore, knowledge is always needed at any age and position.