Answer:
Many factors, however, I believe that the slavery condition and the ideas of liberty that came from the Enlightenment were the main cause of a revolution against Spain.
Step-by-step explanation:
Spain was dominating that region since the 16th century, and from the beginning, Spain demonstrated that would not tolerate any riot. Violence was the way how Spaniards tried to avoid a revolution. The success of the American Revolution, and the ideas of freedom that the Enlightenment advocate, that all humans born equal, led the creoles to rebel against Spain.