Question: who was the aztec ruler when the spanish arrived
Answer: Moctezuma II
Other accepted answers: Moctezuma II; emperor Cuauhtemoc