The Mexica engineered what may be the most productive farmland of the pre-industrial world. Chinampas, artificial garden beds in the lakes of the Valley of Mexico, yielded up to seven crops a year and fed Tenochtitlan's roughly 200,000 people. That surplus paid for the Templo Mayor, the Sun Stone and the codices, and also for a tribute empire and human sacrifice.
'Seven harvests a year' is the high end of a range, and the 200,000 population figure sits within estimates from about 150,000 to over 250,000. Spanish accounts of mass sacrifice are likely exaggerated, though the practice is archaeologically real.