He invited Cortes into the city on tenochititlan, which caused the end of tenochititlan
I hope this helps!