The Aztec were the most powerful people in Middle America when the Spaniards arrived. They were able to conquer the other peoples around them because they all fought with the same Stone Age weapons. But the Aztec had a weakness. They were superstitious, and the Spanish were able to make use of this.
The Spanish defeated the Aztec using their enemies, and also quite accidentally because they brought new diseases the Aztec had no resistance to.